parent
640e0f2a51
commit
e4fa6d1a5b
|
@ -1,6 +1,18 @@
|
||||||
autoload -U compinit
|
# load our own completion functions
|
||||||
compinit
|
fpath=(
|
||||||
|
~/.zsh/completion
|
||||||
|
/usr/local/share/zsh/site-functions
|
||||||
|
$fpath
|
||||||
|
)
|
||||||
|
|
||||||
## case-insensitive (all), partial-word and then substring completion
|
# completion; use cache if updated within 24h
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
|
autoload -Uz compinit
|
||||||
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
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
|
||||||
|
|
14
tag-zsh/zsh/configs/post/completion.zsh
Normal file
14
tag-zsh/zsh/configs/post/completion.zsh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# load our own completion functions
|
||||||
|
fpath=(~/.zsh/completion /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
|
|
@ -7,6 +7,3 @@ g() {
|
||||||
git status --short --branch
|
git status --short --branch
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Complete g like git
|
|
||||||
compdef g=git
|
|
||||||
|
|
Loading…
Reference in a new issue