zsh_reload.plugin.zsh 232 B

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