dotfiles/.zsh/configs/git.zsh
2021-06-10 12:18:43 +01:00

11 lines
152 B
Bash

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