mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Fix zsh_reload plugin to work with custom ZDOTDIR dir
This commit is contained in:
parent
0b4bba4ca2
commit
3026022e07
1 changed files with 2 additions and 2 deletions
|
|
@ -5,9 +5,9 @@ function src()
|
|||
autoload -U compinit zrecompile
|
||||
compinit -d "$cache/zcomp-$HOST"
|
||||
|
||||
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
|
||||
for f in "${ZDOTDIR:-$HOME}/.zshrc" "$cache/zcomp-$HOST"; do
|
||||
zrecompile -p $f && command rm -f $f.zwc.old
|
||||
done
|
||||
|
||||
source ~/.zshrc
|
||||
source "${ZDOTDIR:-$HOME}/.zshrc"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue