2019-01-12 15:47:23 +00:00
|
|
|
src() {
|
|
|
|
local cache="$ZSH_CACHE_DIR"
|
|
|
|
autoload -U compinit zrecompile
|
|
|
|
compinit -i -d "$cache/zcomp-$HOST"
|
|
|
|
|
2020-06-11 14:59:30 +00:00
|
|
|
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
2019-01-12 15:47:23 +00:00
|
|
|
zrecompile -p $f && command rm -f $f.zwc.old
|
|
|
|
done
|
|
|
|
|
|
|
|
# Use $SHELL if available; remove leading dash if login shell
|
|
|
|
[[ -n "$SHELL" ]] && exec ${SHELL#-} || exec zsh
|
|
|
|
}
|