blob: bbaacba58d6560c385e4f8a73df8d85a8aaaf50b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# completions
setopt complete_in_word # complete both ends of words
setopt always_to_end # and move cursor to the end afterward
setopt auto_menu # <tab><tab> brings up the menu ...
setopt no_menu_complete # ... and does not select the first option
setopt auto_param_slash # convenience: add trailing / after directories
setopt no_case_glob
setopt no_flow_control
# complete . and ..
zstyle ':completion:*' special-dirs true
# complete the middle of words e.g. lc -> pluralcafe
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
# cache completions
zstyle ':completion::complete:*' use-cache yes
zstyle ':completion::complete:*' cache-path "$HOME/.zcompcache"
# enable completions
autoload -Uz compinit && compinit
|