Search code examples
shellzshzshrcoh-my-zsh

oh-my-zsh error after upgrade: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'


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! :)


Solution

  • Use upgrade_oh_my_zsh upgrade to the latest version.

    This issue fix here