KIYATYOLHDMF6YCCP4SXKCJ5YXIJQFXZJD7OAZA37WAU6YGGMM3AC #!/usr/bin/fish# version control stufffunction repotypeif git rev-parse --show-toplevel > /dev/null 2> /dev/nullecho "git"else if hg root > /dev/null 2> /dev/nullecho "hg"elseecho "No repository was found."endendfunction rootset TYPE (repotype)switch (echo $TYPE)case "git" # weird characters are inserted into the echo outputgit rev-parse --show-toplevelcase "hg"hg rootcase "*"echo $TYPEendendfunction crootset REPO_DIR (root)if [ $REPO_DIR = "No repository was found." ]echo $REPO_DIRelsecd (root)endendfunction pushset TYPE (repotype)if [ $TYPE = "git" ]git pushelse if [ $TYPE = "hg" ]hg pushelseecho $TYPEendendfunction pullset TYPE (repotype)if [ $TYPE = "git" ]git pullelse if [ $TYPE = "hg" ]hg pullhg updateelseecho $TYPEendendfunction fetchset TYPE (repotype)if [ $TYPE = "git" ]git fetchelse if [ $TYPE = "hg" ]hg pullelseecho $TYPEendendfunction rstatset TYPE (repotype)if [ $TYPE = "git" ]git statuselse if [ $TYPE = "hg" ]hg statuselseecho $TYPEendendfunction glogset TYPE (repotype)if [ $TYPE = "git" ]git glog $argvelse if [ $TYPE = "hg" ]hg glog $argvelse if [ $TYPE = "" ]echo $TYPEendendfunction gloglgit glogl $argvend# file managementfunction llls -la $argvendfunction lfll | grep $argv[1]endfunction rvrm --verbose $argvendfunction rdrv -rf $argvendfunction clif cd $argvlsendend
#!/usr/bin/fish# version control stufffunction repotypeif git rev-parse --show-toplevel > /dev/null 2> /dev/nullecho "git"else if hg root > /dev/null 2> /dev/nullecho "hg"elseecho "No repository was found."endendfunction rootset TYPE (repotype)switch (echo $TYPE)case "git" # weird characters are inserted into the echo outputgit rev-parse --show-toplevelcase "hg"hg rootcase "*"echo $TYPEendendfunction crootset REPO_DIR (root)if [ $REPO_DIR = "No repository was found." ]echo $REPO_DIRelsecd (root)endendfunction pushset TYPE (repotype)if [ $TYPE = "git" ]git pushelse if [ $TYPE = "hg" ]hg pushelseecho $TYPEendendfunction pullset TYPE (repotype)if [ $TYPE = "git" ]git pullelse if [ $TYPE = "hg" ]hg pullhg updateelseecho $TYPEendendfunction fetchset TYPE (repotype)if [ $TYPE = "git" ]git fetchelse if [ $TYPE = "hg" ]hg pullelseecho $TYPEendendfunction rstatset TYPE (repotype)if [ $TYPE = "git" ]git statuselse if [ $TYPE = "hg" ]hg statuselseecho $TYPEendendfunction glogset TYPE (repotype)if [ $TYPE = "git" ]git glog $argvelse if [ $TYPE = "hg" ]hg glog $argvelse if [ $TYPE = "" ]echo $TYPEendendfunction gloglgit glogl $argvend# file managementfunction llls -la $argvendfunction lfll | grep $argv[1]endfunction rvrm --verbose $argvendfunction rdrv -rf $argvendfunction clif cd $argvlsendend
#!/usr/bin/fish# version control stufffunction repotypeif git rev-parse --show-toplevel > /dev/null 2> /dev/nullecho "git"else if hg root > /dev/null 2> /dev/nullecho "hg"elseecho "No repository was found."endendfunction rootset TYPE (repotype)switch (echo $TYPE)case "git" # weird characters are inserted into the echo outputgit rev-parse --show-toplevelcase "hg"hg rootcase "*"echo $TYPEendendfunction crootset REPO_DIR (root)if [ $REPO_DIR = "No repository was found." ]echo $REPO_DIRelsecd (root)endendfunction pushset TYPE (repotype)if [ $TYPE = "git" ]git pushelse if [ $TYPE = "hg" ]hg pushelseecho $TYPEendendfunction pullset TYPE (repotype)if [ $TYPE = "git" ]git pullelse if [ $TYPE = "hg" ]hg pullhg updateelseecho $TYPEendendfunction fetchset TYPE (repotype)if [ $TYPE = "git" ]git fetchelse if [ $TYPE = "hg" ]hg pullelseecho $TYPEendendfunction rstatset TYPE (repotype)if [ $TYPE = "git" ]git statuselse if [ $TYPE = "hg" ]hg statuselseecho $TYPEendendfunction glogset TYPE (repotype)if [ $TYPE = "git" ]git glog $argvelse if [ $TYPE = "hg" ]hg glog $argvelse if [ $TYPE = "" ]echo $TYPEendendfunction gloglgit glogl $argvend# file managementfunction llls -la $argvendfunction lfll | grep $argv[1]endfunction rvrm --verbose $argvendfunction rdrv -rf $argvendfunction clif cd $argvlsendend
[user]email = lordofthemaracas@gmail.comname = Calcifer[push]default = simple[merge]tool = kdiff3[mergetool "someMergeTool"] # just an examplecmd = kdiff3 "$BASE" "$LOCAL" "$REMOTE" -o "$MERGED"[color "ui"]HEAD = red[pretty]glog = format:%C(bold green)%h%C(reset) %C(bold blue)%ad%C(reset) (%C(cyan)%ar%C(reset)) %C(auto)%d%n\t%C(reset)%s %C(dim white)- %an%n[alias]glog = !git --no-pager log --color --graph -n 10 --pretty=glog --allglogl = log --graph --pretty=glog --all[color "decorate"]tag = dim redbranch = bold magenta reverseremoteBranch = bold yellowHEAD = green reverse