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

File 0001-bash_profile-Turn-on-the-coloring-with-ef-grep.patch, 957 bytes (added by Prasad, 12 years ago)
  • data/etc/profile

    From 9b031e26b7efd638fafcd972b9f5f06b2664ed83 Mon Sep 17 00:00:00 2001
    From: Prasad Joshi <prasadjoshi.linux@gmail.com>
    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@gmail.com>
    ---
     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 b export LC_COLLATE=$LC_MESSAGES  
    2424export LC_CTYPE=$LC_MESSAGES
    2525export LC_MONETARY=$LC_NUMERIC
    2626
     27alias egrep='egrep --color=auto'
     28alias fgrep='fgrep --color=auto'
     29alias grep='grep --color=auto'
    2730alias ls="ls --color=auto"
    2831alias ll="ls -lA"
    2932alias la="ls -A"