zsh_reload.plugin.zsh 251 B

12345678910111213
  1. # reload zshrc
  2. function src()
  3. {
  4. local cache="$ZSH/cache"
  5. autoload -U compinit zrecompile
  6. compinit -d "$cache/zcomp-$HOST"
  7. for f in ~/.zshrc "$cache/zcomp-$HOST"; do
  8. zrecompile -p $f && command rm -f $f.zwc.old
  9. done
  10. source ~/.zshrc
  11. }