Browse Source

added case-insensitive auto completion

Jamie van Dyke 14 years ago
parent
commit
4c69833eb1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      completion.zsh

+ 3 - 0
completion.zsh

@@ -11,6 +11,9 @@ compinit
 
 zmodload -i zsh/complist
 
+## case-insensitive (all),partial-word and then substring completion
+zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
+
 zstyle ':completion:*' list-colors ''
 zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )