Ticket #9044: 0001-Turn-on-the-coloring-with-ef-grep.patch

File 0001-Turn-on-the-coloring-with-ef-grep.patch, 1019 bytes (added by Prasad, 7 years ago)
  • new file data/etc/profile.d/colorgrep.sh

    From b9a483e7a45e57699492876d6a5fffc5ca3c7f8e Mon Sep 17 00:00:00 2001
    From: Prasad Joshi <prasadjoshi.linux@gmail.com>
    Date: Fri, 5 Oct 2012 22:36:07 +0530
    Subject: [PATCH] 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
    
    Changes Since V1:
    	- instead of modifying data/etc/profile file put create a new
    	grep specific file in /etc/profile.d/
    
    Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
    ---
     data/etc/profile.d/colorgrep.sh |    3 +++
     1 files changed, 3 insertions(+), 0 deletions(-)
     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 0000000..ada2d65
    - +  
     1alias egrep='egrep --color=auto'
     2alias fgrep='fgrep --color=auto'
     3alias grep='grep --color=auto'