From 929f8bea128361822b054db36402b5e19234319f Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 5 Jun 2026 11:06:04 +0100 Subject: Limit git switch completion to local branches --- dot_config/zsh/dot_zshrc | 1 + 1 file changed, 1 insertion(+) (limited to 'dot_config/zsh') diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 8b2bd4f..552d9a5 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -82,6 +82,7 @@ zstyle ':completion:*:functions' ignored-patterns '_*' # hide internal c zstyle ':completion:*:*:kill:*' menu yes select # interactive menu for kill completion zstyle ':completion:*:kill:*' force-list always # always show process list for kill zstyle ':completion:*:cd:*' ignore-parents parent pwd # cd never completes . or .. +zstyle ':completion:*:*:git-switch:*' tag-order 'branches' # git switch: complete local branches only zstyle ':completion::complete:*' gain-privileges 1 # use sudo for privileged completions zstyle -e ':completion:*:approximate:*' \ max-errors 'reply=($((($#PREFIX+$#SUFFIX)/3))numeric)' # allow 1 typo per 3 chars typed -- cgit v1.3.1