W4LYV3BYQIVK56MOQTNXO6RU47KUEOUCQIZ6PU23MJZ6WNFUS3IQC #!/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_DIRelseendendfunction pushset TYPE (repotype)if [ $TYPE = "git" ]else if [ $TYPE = "hg" ]elseecho $TYPEendendfunction pullset TYPE (repotype)if [ $TYPE = "git" ]git pullelse if [ $TYPE = "hg" ]hg pullhg updateelseecho $TYPEendendfunction fetchset TYPE (repotype)if [ $TYPE = "git" ]else if [ $TYPE = "hg" ]elseecho $TYPEendendfunction rstatset TYPE (repotype)if [ $TYPE = "git" ]else if [ $TYPE = "hg" ]elseecho $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 clif cd $argvlsendendhg status $argvgit status $argvhg pull $argvgit fetch $argvhg push $argvgit push $argvcd (root) $argv
#!/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
function clif cd $argvlsendend
function crootset REPO_DIR (root)if [ $REPO_DIR = "No repository was found." ]echo $REPO_DIRelsecd (root) $argvendend
function fetchset TYPE (repotype)if [ $TYPE = "git" ]git fetch $argvelse if [ $TYPE = "hg" ]hg pull $argvelseecho $TYPEendend
function glogset TYPE (repotype)if [ $TYPE = "git" ]git glog $argvelse if [ $TYPE = "hg" ]hg glog $argvelse if [ $TYPE = "" ]echo $TYPEendend
function gloglgit glogl $argvend
function lfll | grep $argv[1]end
function llls -la $argvend
function pullset TYPE (repotype)if [ $TYPE = "git" ]git pullelse if [ $TYPE = "hg" ]hg pullhg updateelseecho $TYPEendend
function pushset TYPE (repotype)if [ $TYPE = "git" ]git push $argvelse if [ $TYPE = "hg" ]hg push $argvelseecho $TYPEendend
function 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."endend
function rootset TYPE (repotype)switch (echo $TYPE)case "git" # weird characters are inserted into the echo outputgit rev-parse --show-toplevelcase "hg"hg rootcase "*"echo $TYPEendend
function rstatset TYPE (repotype)if [ $TYPE = "git" ]git status $argvelse if [ $TYPE = "hg" ]hg status $argvelseecho $TYPEendend
function rvrm --verbose $argvend