Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404035 - app-shells/zsh - add GREP_OPTIONS to profile
Summary: app-shells/zsh - add GREP_OPTIONS to profile
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Piotr Karbowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 05:44 UTC by Brian Lee
Modified: 2022-11-26 21:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 (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.