aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:06:04 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:06:04 +0100
commit929f8bea128361822b054db36402b5e19234319f (patch)
treef3dfba80fd9800e69623a39cb766d5a06eec4f6c
parentaf3b15af163231eb16feff46bbbba85729d07f31 (diff)
downloaddotfiles-929f8bea128361822b054db36402b5e19234319f.tar.gz
dotfiles-929f8bea128361822b054db36402b5e19234319f.tar.bz2
dotfiles-929f8bea128361822b054db36402b5e19234319f.zip
Limit git switch completion to local branches
-rw-r--r--dot_config/zsh/dot_zshrc1
1 files changed, 1 insertions, 0 deletions
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