Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use cache folder inside $ZSH, delete with unaliased rm

  • Loading branch information...
commit fcfa323974985cd202c95379f893a86d6cf975fb 1 parent a9061f3
Marc Cornellà mcornella authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 plugins/zsh_reload/zsh_reload.plugin.zsh
13 plugins/zsh_reload/zsh_reload.plugin.zsh
View
@@ -1,13 +1,12 @@
-zsh_cache=$HOME/.zsh_cache
-mkdir -p $zsh_cache
-
# reload zshrc
function src()
{
autoload -U compinit zrecompile
- compinit -d $zsh_cache/zcomp-$HOST
- for f in $HOME/.zshrc $zsh_cache/zcomp-$HOST; do
- zrecompile -p $f && rm -f $f.zwc.old
+ compinit -d "$ZSH/cache/zcomp-$HOST"
+
+ for f in ~/.zshrc "$ZSH/cache/zcomp-$HOST"; do
+ zrecompile -p $f && command rm -f $f.zwc.old
done
+
source ~/.zshrc
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.