dotfiles/roles/zsh/files/config/configs/git.zsh

13 lines
167 B
Bash

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