今天我升级了我的哦- my -zsh,然后启动了这个错误:~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'
在这个文件中有一个shell循环...
## 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我认为问题出在if条件中,但我没有shell/zsh技能:(有人能帮我解决这个问题吗?非常感谢!:)
发布于 2015-06-17 09:41:47
使用upgrade_oh_my_zsh升级到最新版本。
此问题修复here
发布于 2015-06-16 00:06:07
Etan Reisner用他的评论帮我解决了问题。You need a space between the " and the ]] in that if line.
所以我只需添加一个空格:')并修复警告!: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再次感谢!:)
https://stackoverflow.com/questions/30848107
复制相似问题