OmeGak / dotfiles

The ultimate bastion for my dotfiles and more
MIT License
6 stars 2 forks source link

Disable auto-completion for remote branches in Git #29

Open OmeGak opened 7 years ago

OmeGak commented 7 years ago

I was trying this but it didn't work.

# Disable auto-completion of remote branches on `git checkout`
# Source: http://stackoverflow.com/a/17133279/1901977
zstyle ':completion::complete:git-checkout:argument-rest:headrefs' command "git for-each-ref --format='%(refname)' refs/heads 2>/dev/null"
OmeGak commented 7 years ago

Some ideas on how to tackle it here: http://stackoverflow.com/questions/12175277/disable-auto-completion-of-remote-branches-in-zsh

I tried the _call_program approach, but it seems deprecated.