today I upgrade my oh-my-zsh and then start this error:
~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'
Inside this file there is this shell loop...
## Load smart urls if available
for d in $fpath; do
if [[ -e "$url/d-quote-magic"]]; then
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
fi
done
I think the problem it's inside the if condition, but I don't have shell/zsh skills :( Could anyone can help me with this? Thanks a lot! :)
Etan Reisner help me out with his commentary.
You need a space between the " and the ]] in that if line.
So I just add a space :') and fix the warning! :P
for d in $fpath; do
if [[ -e "$url/d-quote-magic" ]]; then
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
fi
done
Thanks again! :)
Use upgrade_oh_my_zsh
upgrade to the latest version.
This issue fix here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With