dotfiles/zsh/func/g

17 lines
242 B
Text
Raw Normal View History

2021-12-31 11:54:55 -08:00
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
function g {
2021-12-31 11:54:55 -08:00
if [[ $# -gt 0 ]]; then
git $@
else
git status --short --branch
fi
return $?
}
# Use git completion for the g function
compdef g='git'
2021-12-31 11:54:55 -08:00
g "$@"