Oliver Davies
8916e90050
Combine with this repository with https://github.com/opdavies/ubuntu-provisioning so that everything can be managed in one place, and add a role for each piece of software.
19 lines
546 B
Bash
19 lines
546 B
Bash
# load our own completion functions
|
|
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
|
|
|
|
## case-insensitive (all), partial-word and then substring completion
|
|
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' \
|
|
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|