1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Cache
zsh_cache=~/.zsh/cache
mkdir -p $zsh_cache
# Use modern completion system
autoload -Uz compinit zrecompile
if [ $UID -eq 0 ]; then
compinit
else
compinit -d $zsh_cache/zcomp-$HOST
for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
zrecompile -p $f && rm -f $f.zwc.old
done
fi
setopt extended_glob
for zshrc_snipplet in ~/.zsh/rc/S[0-9][0-9]*[^~] ; do
source $zshrc_snipplet
done
|
x
Notes
https://github.com/dodo/zshrc
does mostly what i want :]