scatterd-dotfiles/zsh/functions/g

13 lines
170 B
Text
Raw Normal View History

# 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