2016-10-26 18:04:14 +00:00
|
|
|
src() {
|
|
|
|
local cache="$ZSH_CACHE_DIR"
|
|
|
|
autoload -U compinit zrecompile
|
2016-10-26 18:09:08 +00:00
|
|
|
compinit -i -d "$cache/zcomp-$HOST"
|
2014-03-25 21:16:36 +00:00
|
|
|
|
2016-10-26 18:04:14 +00:00
|
|
|
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
|
|
|
zrecompile -p $f && command rm -f $f.zwc.old
|
|
|
|
done
|
2014-03-25 21:16:36 +00:00
|
|
|
|
2016-10-26 18:05:57 +00:00
|
|
|
# Use $SHELL if available; remove leading dash if login shell
|
|
|
|
[[ -n "$SHELL" ]] && exec ${SHELL#-} || exec zsh
|
2014-03-25 21:16:36 +00:00
|
|
|
}
|