#
# When a program is started preexec() sets the window's name to it; when it
# stops precmd() resets the windows' name to 'zsh'.
#
# When a program is started preexec() sets the window's name to it; when it
# stops precmd() resets the windows' name to 'zsh'.
if [[ $TERM == screen || $TERM == xterm* ]]; then
# Set to a non empty value to reset the window name in the next precmd()
# call.
window_reset=yes
if [[ $TERM == screen || $TERM == xterm* ]]; then
# Set to a non empty value to reset the window name in the next precmd()
# call.
window_reset=yes
# Use new completion system, store dumpfile in ~/.zsh/cache to prevent
# cluttering of ~/.
autoload -U compinit && compinit -d ~/.zsh/cache/zcompdump
# Use new completion system, store dumpfile in ~/.zsh/cache to prevent
# cluttering of ~/.
autoload -U compinit && compinit -d ~/.zsh/cache/zcompdump
# Make sure the list of possible completions is displayed after pressing <TAB>
# the first time.
setopt nolistambiguous
# Allow completions in the middle of a text, i.e. "/usr/bin/<TAB>whatever"
# completes like "/usr/bin/<TAB>". Useful when adding new options to commands.
bindkey "^I" expand-or-complete-prefix
# Make sure the list of possible completions is displayed after pressing <TAB>
# the first time.
setopt nolistambiguous
# Allow completions in the middle of a text, i.e. "/usr/bin/<TAB>whatever"
# completes like "/usr/bin/<TAB>". Useful when adding new options to commands.
bindkey "^I" expand-or-complete-prefix
# 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}'
# 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}'
# Make completion lists scrollable so "do you wish to see all n possibilities"
# is no longer displayed.
zstyle ':completion:*' list-prompt '%p'
# 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 unsetting variables make sure every variable name is only suggested
# once.
zstyle ':completion:*:unset:*' ignore-line yes