dotfiles/zsh/.zsh/configs/post/completion.zsh

19 lines
546 B
Bash
Raw Normal View History

# load our own completion functions
2020-03-03 00:51:30 +00:00
fpath=(~/.zsh/completion-scripts /usr/local/share/zsh/site-functions $fpath)
# completion; use cache if updated within 24h
autoload -Uz compinit
if [[ -n $HOME/.zcompdump(#qN.mh+24) ]]; then
compinit -d $HOME/.zcompdump;
else
compinit -C;
fi;
# disable zsh bundled function mtools command mcd
# which causes a conflict.
compdef -d mcd
2020-03-03 12:26:07 +00:00
## case-insensitive (all), partial-word and then substring completion
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' \
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'