X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=fb37a6a5ba0b0e58442e51eb2543af10d72fdfd3;hb=ea83a5064cd887af82ffafe8767fcfb5682a371f;hp=15e3911ec4429d680602498ea347eadd873034dc;hpb=77da04c4fc98cf5f1041f6b00c8fbbcbd3db4973;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 15e3911..fb37a6a 100644 --- a/zsh/rc +++ b/zsh/rc @@ -60,8 +60,9 @@ bindkey "^I" expand-or-complete-prefix # Use cache to speed up completions. zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path ~/.zsh/cache -# Ignore case if currently typed string doesn't match. -zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' +# Try uppercase if the currently typed string doesn't match. This allows +# typing in lowercase most of the time and completion fixes the case. +zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' # Ignore completion functions. zstyle ':completion:*:functions' ignored-patterns '_*' # Ignore parent directory. @@ -71,6 +72,11 @@ zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} # Make completion lists scrollable so "do you wish to see all n possibilities" # is no longer displayed. zstyle ':completion:*' list-prompt '%p' +# When unsetting variables make sure every variable name is only suggested +# once. +zstyle ':completion:*:unset:*' ignore-line yes +# When working with mercurial don't complete the same file multiple times. +zstyle ':completion:*:hg*:*' ignore-line yes # Enable zsh's extended glob abilities. setopt extendedglob