fix(zsh): g function not autocompleting

This commit is contained in:
Oliver Davies 2022-07-13 00:03:34 +01:00
parent 6dc90947a5
commit 6de17552a4
5 changed files with 20 additions and 28 deletions

View file

@ -1,17 +1,7 @@
# load our own completion functions
fpath=(~/.zsh/completion-scripts /usr/local/share/zsh/site-functions $fpath)
fpath=(~/.config/zsh/completion-scripts $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
autoload -Uz compinit && compinit
## case-insensitive (all), partial-word and then substring completion
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' \