解决zsh升级带来grep错误“grep: unrecognized option `--exclude-dir=.cvs'”的办法:
http://stackoverflow.com/questions/22610707/oh-my-zsh-mac-os-x-broken
Grep versions lower than 2.5.3 do not have this option. Try to upgrade your grep, or comment out the lines
for PATTERN in .cvs .git .hg .svn; do
GREP_OPTIONS+="--exclude-dir=$PATTERN "
done
at .oh-my-zsh/lib/grep.zsh line 9. Then it works fine again.
本文介绍了解决zsh升级后导致的grep错误“grep: unrecognized option `--exclude-dir=.cvs'”。建议升级grep到2.5.3以上版本,或者注释掉oh-my-zsh中grep.zsh文件的相关行。

被折叠的 条评论
为什么被折叠?



