Ticket #4494: 0001-Change-color-scheme-for-other-writable-directory.patch

File 0001-Change-color-scheme-for-other-writable-directory.patch, 2.9 KB (added by Prasad, 7 years ago)
  • new file data/etc/profile.d/colorls.sh

    From 3c937a0740e589ec32d06dd8c81755aece061c4d Mon Sep 17 00:00:00 2001
    From: Prasad Joshi <prasadjoshi.linux@gmail.com>
    Date: Sun, 7 Oct 2012 17:55:20 +0530
    Subject: [PATCH] Change color scheme for other writable directory
    
    The ls command, uses blue color for directories. For a directory that
    has write permission for others, it uses green highlighting while
    displaying the directory name. However, blue text and green highlight
    is difficult to read.
    
    The patch keeps the text color as blue and changes the highlight to
    yellow.
    
    This patch fixes the ticket 4494
    ---
     data/etc/profile.d/colorls.sh     |    1 +
     src/bin/coreutils/src/dircolors.h |    2 +-
     2 files changed, 2 insertions(+), 1 deletions(-)
     create mode 100644 data/etc/profile.d/colorls.sh
    
    diff --git a/data/etc/profile.d/colorls.sh b/data/etc/profile.d/colorls.sh
    new file mode 100644
    index 0000000..d055b55
    - +  
     1eval `dircolors -b`
  • src/bin/coreutils/src/dircolors.h

    diff --git a/src/bin/coreutils/src/dircolors.h b/src/bin/coreutils/src/dircolors.h
    index 19be33c..741d63d 100644
    a b static char const G_line[] =  
    7878  'S','E','T','G','I','D',' ','3','0',';','4','3',' ','#',' ','f','i','l','e',' ','t','h','a','t',' ','i','s',' ','s','e','t','g','i','d',' ','(','g','+','s',')',0,
    7979  'C','A','P','A','B','I','L','I','T','Y',' ','3','0',';','4','1',' ','#',' ','f','i','l','e',' ','w','i','t','h',' ','c','a','p','a','b','i','l','i','t','y',0,
    8080  'S','T','I','C','K','Y','_','O','T','H','E','R','_','W','R','I','T','A','B','L','E',' ','3','0',';','4','2',' ','#',' ','d','i','r',' ','t','h','a','t',' ','i','s',' ','s','t','i','c','k','y',' ','a','n','d',' ','o','t','h','e','r','-','w','r','i','t','a','b','l','e',' ','(','+','t',',','o','+','w',')',0,
    81   'O','T','H','E','R','_','W','R','I','T','A','B','L','E',' ','3','4',';','4','2',' ','#',' ','d','i','r',' ','t','h','a','t',' ','i','s',' ','o','t','h','e','r','-','w','r','i','t','a','b','l','e',' ','(','o','+','w',')',' ','a','n','d',' ','n','o','t',' ','s','t','i','c','k','y',0,
     81  'O','T','H','E','R','_','W','R','I','T','A','B','L','E',' ','3','4',';','4','3',' ','#',' ','d','i','r',' ','t','h','a','t',' ','i','s',' ','o','t','h','e','r','-','w','r','i','t','a','b','l','e',' ','(','o','+','w',')',' ','a','n','d',' ','n','o','t',' ','s','t','i','c','k','y',0,
    8282  'S','T','I','C','K','Y',' ','3','7',';','4','4',' ','#',' ','d','i','r',' ','w','i','t','h',' ','t','h','e',' ','s','t','i','c','k','y',' ','b','i','t',' ','s','e','t',' ','(','+','t',')',' ','a','n','d',' ','n','o','t',' ','o','t','h','e','r','-','w','r','i','t','a','b','l','e',0,
    8383  '#',' ','T','h','i','s',' ','i','s',' ','f','o','r',' ','f','i','l','e','s',' ','w','i','t','h',' ','e','x','e','c','u','t','e',' ','p','e','r','m','i','s','s','i','o','n',':',0,
    8484  'E','X','E','C',' ','0','1',';','3','2',0,