2011-10-20 11:10:20 +00:00
|
|
|
# reload zshrc
|
|
|
|
function src()
|
|
|
|
{
|
2014-04-24 22:48:37 +00:00
|
|
|
local cache="$ZSH/cache"
|
2011-10-20 11:10:20 +00:00
|
|
|
autoload -U compinit zrecompile
|
2014-04-24 22:48:37 +00:00
|
|
|
compinit -d "$cache/zcomp-$HOST"
|
2014-03-25 21:16:36 +00:00
|
|
|
|
2014-04-24 22:48:37 +00:00
|
|
|
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
2014-03-25 21:16:36 +00:00
|
|
|
zrecompile -p $f && command rm -f $f.zwc.old
|
2011-10-20 11:10:20 +00:00
|
|
|
done
|
2014-03-25 21:16:36 +00:00
|
|
|
|
2011-10-20 11:10:20 +00:00
|
|
|
source ~/.zshrc
|
2014-03-25 21:16:36 +00:00
|
|
|
}
|