# enable completion features fpath=(~/.zfunc $fpath) zmodload zsh/complist autoload -Uz compinit compinit -d ~/.cache/zsh/.zcompdump zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path "${HOME}/.cache/zsh/.zcompcache" zstyle ':completion:*' menu yes select zstyle ':completion:*' auto-description 'specify: %d' zstyle ':completion:*' format 'Completing %d' zstyle ':completion:*' group-name '' zstyle ':completion:*' list-colors '' zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' rehash true zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s zstyle ':completion:*' use-compctl false zstyle ':completion:*' verbose true zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*:*:extract:*' file-patterns '*.tar* *.lzma *.bz2 *.zip *.7z' zstyle ':completion:*' complete-options true zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate _prefix _list zstyle ':completion:*:match:*' original only zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:(all-|)files' ignored-patterns '(|*/)CVS' zstyle ':completion:*:cd:*' ignored-patterns '(*/)#CVS' zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*:cd:*' ignore-parents parent pwd zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f' zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f' bindkey -M menuselect '^h' vi-backward-char bindkey -M menuselect '^k' vi-up-line-or-history bindkey -M menuselect '^j' vi-down-line-or-history bindkey -M menuselect '^l' vi-forward-char bindkey -M menuselect '^e' undo bindkey -M menuselect '^[' cancel bindkey -M menuselect '^M' check-command bindkey -M menuselect '^I' accept-and-infer-next-history compdef _directories _d compdef _files _f compdef _directories mcd