Artur Eshenbrener
Artur Eshenbrener

Reputation: 2020

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

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

Upvotes: 4

Views: 688

Answers (1)

Artur Eshenbrener
Artur Eshenbrener

Reputation: 2020

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"

Upvotes: 3

Related Questions