Hi.
Seems you're setting
GREP_OPTIONS somewhere (.bashrc/.bash_profile/.zshrc, etc.) and grep is letting you know it is deprecating this.
You can check with:
Code:
$ export | grep GREP
You can replace the environment variable and add the options directly to your alias to accomplish the same thing. For example, to have
grep show the matched strings in color you can do something like:
Code:
$ alias lsgp="ls /var/log/packages | grep --color=auto $1"
If you don't want to remove GREP_OPTIONS, for whatever reason, you could instead suppress the warning with an alias like:
Code:
$ alias lsgp="ls /var/log/packages | grep $1 2>/dev/null"
--mancha