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: Lars Wendler (Polynomial-C) <polynomial-c>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
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
2.
3.
Comment 1 Jeroen Roovers 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!