diff options
author | Matthew Donoughe <mdonoughe@gmail.com> | 2009-10-07 20:01:52 +0000 |
---|---|---|
committer | Matthew Donoughe <mdonoughe@gmail.com> | 2009-10-07 20:03:23 +0000 |
commit | cea6040c305d1e645f497e59133c2c5434a430ef (patch) | |
tree | dec6649246257c7920bc6db302c2084dac3b3d95 /lib/completion.zsh | |
parent | 2289cacecbf027e71380ab0c349dee6f902e7b65 (diff) | |
download | zsh-cea6040c305d1e645f497e59133c2c5434a430ef.tar.gz zsh-cea6040c305d1e645f497e59133c2c5434a430ef.tar.bz2 zsh-cea6040c305d1e645f497e59133c2c5434a430ef.zip |
allow case sensitivity to be toggled
Diffstat (limited to 'lib/completion.zsh')
-rw-r--r-- | lib/completion.zsh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh index 795903d0d..11f67249f 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -14,7 +14,12 @@ 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:|=*' +if [ "$CASE_SENSITIVE" ]; then + zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' + unset CASE_SENSITIVE +else + zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' +fi zstyle ':completion:*' list-colors '' zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts ) |