From 642eeda1c18a41686da25ed58236e91fa2044bf2 Mon Sep 17 00:00:00 2001 From: Prasad Joshi Date: Fri, 5 Oct 2012 22:36:07 +0530 Subject: [PATCH] Turn on the coloring with grep (ticket #9044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All grep versions have the ability to display a colored output. The patch turns on coloring in auto mode. Signed-off-by: Jérôme Duval --- data/etc/profile.d/colorgrep.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 data/etc/profile.d/colorgrep.sh diff --git a/data/etc/profile.d/colorgrep.sh b/data/etc/profile.d/colorgrep.sh new file mode 100644 index 0000000000..ada2d65092 --- /dev/null +++ b/data/etc/profile.d/colorgrep.sh @@ -0,0 +1,3 @@ +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' +alias grep='grep --color=auto'