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