fix(zsh): g function not autocompleting

This commit is contained in:
Oliver Davies 2022-07-13 00:03:34 +01:00
parent 6dc90947a5
commit 6de17552a4
5 changed files with 20 additions and 28 deletions

View file

@ -0,0 +1,9 @@
# No arguments: `git status`
# With arguments: acts like `git`
g() {
if [[ $# -gt 0 ]]; then
git "$@"
else
git status
fi
}