Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of `grep: warning: GREP_OPTIONS is deprecated; please use an alias or script`?

Tags:

grep

zsh

prezto

I have zsh + zprezto installed on my Arch linux. Every time I open the console the annoying warning is being displayed:

grep: warning: GREP_OPTIONS is deprecated; please use an alias or script

Following the instructions in [SOLVED] grep: warning: GREP_OPTIONS is deprecated doesn't help. How can I get rid of this warning?

like image 832
Sergey Alekseev Avatar asked Jul 01 '15 08:07

Sergey Alekseev


1 Answers

Since GREP_OPTIONS is deprecated, if you had a value set for it, e.g.

export GREP_OPTIONS='--exclude-dir=__pycache__'

just move it to an alias:

alias grep='grep --exclude-dir=__pycache__'
like image 176
Demitri Avatar answered Sep 28 '22 11:09

Demitri