Disable auto-completion of tags in Zsh for git checkout command?

641 views Asked by At

I have a repository with a lot of tags. How can I disable completion to it for git checkout command

1

There are 1 answers

3
Artur Eshenbrener On

This could helps, put these lines to your .zshrc file:

zstyle ':completion::complete:git-checkout:argument-rest:commit-tag-refs' command "echo"
zstyle ':completion::complete:git-checkout:argument-rest:blob-tag-refs' command "echo"