Squashed 'oh-my-zsh/' content from commit 550ccca
git-subtree-dir: oh-my-zsh git-subtree-split: 550ccca91cb45fcf26a8f2c3c60da675b995e3f3
This commit is contained in:
13
plugins/zsh_reload/zsh_reload.plugin.zsh
Normal file
13
plugins/zsh_reload/zsh_reload.plugin.zsh
Normal file
@@ -0,0 +1,13 @@
|
||||
# reload zshrc
|
||||
function src()
|
||||
{
|
||||
local cache=$ZSH_CACHE_DIR
|
||||
autoload -U compinit zrecompile
|
||||
compinit -d "$cache/zcomp-$HOST"
|
||||
|
||||
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
||||
zrecompile -p $f && command rm -f $f.zwc.old
|
||||
done
|
||||
|
||||
source ~/.zshrc
|
||||
}
|
||||
Reference in New Issue
Block a user