Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable auto-completion for remote branches in Git #29

Open
OmeGak opened this issue Feb 24, 2017 · 1 comment
Open

Disable auto-completion for remote branches in Git #29

OmeGak opened this issue Feb 24, 2017 · 1 comment

Comments

@OmeGak
Copy link
Owner

OmeGak commented Feb 24, 2017

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
Copy link
Owner Author

OmeGak commented May 4, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant