mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00:00
make sure cache dir exists, just like log dir
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# reload zshrc
|
||||
function src()
|
||||
{
|
||||
local cache="$ZSH/cache"
|
||||
autoload -U compinit zrecompile
|
||||
compinit -d "$ZSH/cache/zcomp-$HOST"
|
||||
compinit -d "$cache/zcomp-$HOST"
|
||||
|
||||
for f in ~/.zshrc "$ZSH/cache/zcomp-$HOST"; do
|
||||
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
||||
zrecompile -p $f && command rm -f $f.zwc.old
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user