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

648 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 best solutions below

3
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"