mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-24 21:31:58 +00:00
13 lines
No EOL
269 B
Bash
13 lines
No EOL
269 B
Bash
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
|
|
done
|
|
source ~/.zshrc
|
|
} |