Skip to content

Instantly share code, notes, and snippets.

@erawhctim
Created February 20, 2020 21:27
Show Gist options
  • Save erawhctim/a3f8d41cb6132a72ffc0fa777c2d8e72 to your computer and use it in GitHub Desktop.
Save erawhctim/a3f8d41cb6132a72ffc0fa777c2d8e72 to your computer and use it in GitHub Desktop.
Fish function to replace git status with git-number
function g \
--description 'abbreviation for git-number w/auto completion' \
--wraps git
if string length -q -- $argv
switch $argv[1]
#ignore rebase, since it doesn't play nice with git-number
case "reb*"
git $argv
case "*"
git-number $argv
end
else
git-number $argv
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment