Created
February 20, 2020 21:27
-
-
Save erawhctim/a3f8d41cb6132a72ffc0fa777c2d8e72 to your computer and use it in GitHub Desktop.
Fish function to replace git status with git-number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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