Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oh-my-zsh mac os X broken [closed]

This morning an Oh-my-zsh update. Since then, each time I launch my terminal :

grep: unrecognized option `--exclude-dir=.cvs'

Idem when I try to use git-flow

any idea ?

like image 382
gdurelle Avatar asked Mar 24 '14 13:03

gdurelle


1 Answers

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.

like image 104
Mau Avatar answered Nov 03 '22 02:11

Mau