Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 404035

Summary: app-shells/zsh - add GREP_OPTIONS to profile
Product: Gentoo Linux Reporter: Brian Lee <brian>
Component: Current packagesAssignee: Piotr Karbowski (RETIRED) <slashbeast>
Severity: enhancement CC: t
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Brian Lee 2012-02-16 05:44:30 UTC
Add the following to the default bashrc or zshrc:

export GREP_OPTIONS="--color=auto"

This will have grep highlight matches in red (the default), a minor but useful enhancement to the default grep behavior.

Reproducible: Always

Steps to Reproduce:
1. add export GREP_OPTIONS='--color=auto' to your $HOME/.bashrc or $HOME/.zshrc
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-16 05:55:31 UTC
app-shells/bash : /etc/bash/bashrc:76:  alias grep='grep --colour=auto'

There you go - halfway there!
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2022-11-26 21:46:03 UTC
GREP_OPTIONS must not be used globally. I will be closing this one.