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

3

13

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?

Mcbroom answered 1/7, 2015 at 8:42 Comment(0)
M
4

The following setting in ~/.zpreztorc caused the annoying warning message to be displayed:

zstyle ':prezto:*:*' color 'yes'

I just commented it out and it's fine now. The warning disappeared.

Mcbroom answered 1/7, 2015 at 8:42 Comment(0)
E
19

Just unset the environment variable using:

unset GREP_OPTIONS
Egarton answered 4/9, 2017 at 13:33 Comment(0)
G
8

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__'
Garaway answered 23/10, 2020 at 21:12 Comment(0)
M
4

The following setting in ~/.zpreztorc caused the annoying warning message to be displayed:

zstyle ':prezto:*:*' color 'yes'

I just commented it out and it's fine now. The warning disappeared.

Mcbroom answered 1/7, 2015 at 8:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.