Diff
1diff --git a/lib/completion.zsh b/lib/completion.zsh
2index 795903d0dee5a4433955814241e6c8ae3845ae13..68ca3b4c135fbcf15b03e1bf949e43c4b96ee2d1 100644
3--- a/lib/completion.zsh
4+++ b/lib/completion.zsh
5@@ -14,7 +14,12 @@ compinit
6 zmodload -i zsh/complist
7
8 ## case-insensitive (all),partial-word and then substring completion
9-zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
10+if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
11+ zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
12+ unset CASE_SENSITIVE
13+else
14+ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
15+fi
16
17 zstyle ':completion:*' list-colors ''
18 zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
19@@ -37,4 +42,4 @@ zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/
20 # zstyle ':completion:*:history-words' stop yes
21 # zstyle ':completion:*:history-words' remove-all-dups yes
22 # zstyle ':completion:*:history-words' list false
23-# zstyle ':completion:*:history-words' menu yes
24+# zstyle ':completion:*:history-words' menu yes
25diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
26index 787dc3d09fc6e1ab318cbf75991c5e77046393b3..7c43303bd375d293df12009ba1d861a0055f4c26 100644
27--- a/templates/zshrc.zsh-template
28+++ b/templates/zshrc.zsh-template
29@@ -5,6 +5,9 @@ export ZSH=$HOME/.oh-my-zsh
30 # Look in ~/.oh-my-zsh/themes/
31 export ZSH_THEME="robbyrussell"
32
33+# Set to this to use case-sensitive completion
34+# export CASE_SENSITIVE="true"
35+
36 # Comment this out to disable weekly auto-update checks
37 # export DISABLE_AUTO_UPDATE="false"
38