# matches case insensitive for lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

# pasting with tabs doesn't perform completion
zstyle ':completion:*' insert-tab pending

# adapted from http://stackoverflow.com/questions/8300687/zsh-color-partial-tab-completions
# color partial tab completion to highlight the next character
zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==00=36}:${(s.:.)LS_COLORS}")';

# Taken from https://github.com/miohtama/ztanesh/blob/master/zsh-scripts/rc/90-keybindings
# Select directory and open a ZSH tab completer
# http://zsh.sourceforge.net/Guide/zshguide06.html#l149
# http://www.refining-linux.org/archives/40/ZSH-Gem-5-Menu-selection/
# http://www.cs.elte.hu/zsh-manual/zsh_14.html#SEC52
#
# - space: advance to the directory and open it for the completion
# - backspace: undo the selection

zmodload zsh/complist
bindkey -M menuselect ' ' accept-and-infer-next-history
bindkey -M menuselect '^?' undo

# pasting with tabs doesn't perform completion
zstyle ':completion:*' insert-tab pending

# adapted from http://stackoverflow.com/questions/8300687/zsh-color-partial-tab-completions
# color partial tab completion to highlight the next character
zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==00=36}:${(s.:.)LS_COLORS}")';

# Taken from https://github.com/miohtama/ztanesh/blob/master/zsh-scripts/rc/90-keybindings
# Select directory and open a ZSH tab completer
# http://zsh.sourceforge.net/Guide/zshguide06.html#l149
# http://www.refining-linux.org/archives/40/ZSH-Gem-5-Menu-selection/
# http://www.cs.elte.hu/zsh-manual/zsh_14.html#SEC52
#
# - space: advance to the directory and open it for the completion
# - backspace: undo the selection

zmodload zsh/complist
bindkey -M menuselect ' ' accept-and-infer-next-history
bindkey -M menuselect '^?' undo

Use matcher-list definition from oh-my-zsh
Use matcher-list definition from oh-my-zsh

Because it can do 'Partial words' matching
See §6.7 of http://zsh.sourceforge.net/Guide/zshguide06.html
