Add 'g' function

Add the 'g' function as a wrapper around 'git'.
This commit is contained in:
Oliver Davies 2019-10-09 19:02:37 +01:00
parent 70e3fe7faa
commit 6b7a7ea5a7

12
tag-zsh/zsh/functions/g Normal file
View file

@ -0,0 +1,12 @@
# No arguments: `git status`
# With arguments: acts like `git`
g() {
if [[ $# > 0 ]]; then
git $@
else
git status
fi
}
# Complete g like git
compdef g=git