I have a few aliased functions such as gb
for git branch
and gco
for git checkout
in my .zshrc. This works great when I remember the full branch name I'm creating, deleting, checking out, etc. However, I noticed that completions no longer seem to work. Previously, I could do
$ git checkout m<TAB>
and it would autocomplete master if that was the name of a branch. Now, however, I get the following error when I use:
$ gco m<TAB>
_git:15: parse error: condition expected: 1
I'm not sure why this is occurring. It appears there's possibly a missing argument, but I'm not sure why.
Edit:
I'm setting an alias for git branch
and git checkout
in my .zshrc file like this:
alias gco='git checkout'
alias gb='git branch'