[haiku-bugs] Re: [Haiku] #9044: [Terminal]: The output of <ef>grep should be colored

  • From: "Prasad" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Oct 2012 04:28:20 -0000

#9044: [Terminal]: The output of <ef>grep should be colored
-----------------------------------------------+---------------------------
   Reporter:  Prasad                           |      Owner:  nobody
       Type:  bug                              |     Status:  new
   Priority:  normal                           |  Milestone:  R1
  Component:  Applications/Command Line Tools  |    Version:
 Resolution:                                   |  R1/Development
 Blocked By:                                   |   Keywords:
Has a Patch:  1                                |   Blocking:
                                               |   Platform:  All
-----------------------------------------------+---------------------------

Comment (by Prasad):

 Following patch fixes the problem

 {{{
 From 9b031e26b7efd638fafcd972b9f5f06b2664ed83 Mon Sep 17 00:00:00 2001
 From: Prasad Joshi <prasadjoshi.linux@xxxxxxxxx>
 Date: Fri, 5 Oct 2012 09:53:54 +0530
 Subject: [PATCH] bash_profile: Turn on the coloring with <ef>grep

 All of the versions of grep have ability to display the colored
 output. The patch turn ons the coloring in auto mode.

 Fixes the ticket: https://dev.haiku-os.org/ticket/9044

 Signed-off-by: Prasad Joshi <prasadjoshi.linux@xxxxxxxxx>
 ---
  data/etc/profile |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

 diff --git a/data/etc/profile b/data/etc/profile
 index e61bbc8..04a1896 100644
 --- a/data/etc/profile
 +++ b/data/etc/profile
 @@ -24,6 +24,9 @@ export LC_COLLATE=$LC_MESSAGES
  export LC_CTYPE=$LC_MESSAGES
  export LC_MONETARY=$LC_NUMERIC

 +alias egrep='egrep --color=auto'
 +alias fgrep='fgrep --color=auto'
 +alias grep='grep --color=auto'
  alias ls="ls --color=auto"
  alias ll="ls -lA"
  alias la="ls -A"
 --
 1.7.5.4
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9044#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: