Commit 8706c8eb authored by Marc Cornellà's avatar Marc Cornellà
Browse files

zsh_reload: ignore insecure compinit files

parent 9a7c56dc
src() { src() {
local cache="$ZSH_CACHE_DIR" local cache="$ZSH_CACHE_DIR"
autoload -U compinit zrecompile autoload -U compinit zrecompile
compinit -d "$cache/zcomp-$HOST" compinit -i -d "$cache/zcomp-$HOST"
for f in ~/.zshrc "$cache/zcomp-$HOST"; do for f in ~/.zshrc "$cache/zcomp-$HOST"; do
zrecompile -p $f && command rm -f $f.zwc.old zrecompile -p $f && command rm -f $f.zwc.old
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment