fix(zsh): g
function not autocompleting
This commit is contained in:
parent
6dc90947a5
commit
6de17552a4
5 changed files with 20 additions and 28 deletions
9
roles/zsh/files/config/functions/g
Normal file
9
roles/zsh/files/config/functions/g
Normal file
|
@ -0,0 +1,9 @@
|
|||
# No arguments: `git status`
|
||||
# With arguments: acts like `git`
|
||||
g() {
|
||||
if [[ $# -gt 0 ]]; then
|
||||
git "$@"
|
||||
else
|
||||
git status
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue