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

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

    From f5b310b39b4f539910e1e6276dd257e75c54b55b 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     |   17 +++++++++++++++++
     src/bin/coreutils/src/dircolors.h |    2 +-
     2 files changed, 18 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..6d6784a
    - +  
     1#
     2# colorls.sh - set up the ls color preferences.
     3#
     4# The environment variable LS_COLORS maintains colon (:) seperated list of
     5# color preferences to be used by ls program. This script is placed in
     6# /etc/profile.d/ directory that would make sure the script is executed on
     7# before a terminal is started. The script sets LS_COLORS environment with
     8# suitable color setting for Haiku terminal.
     9#
     10# Copyright 2012 Haiku, Inc. All rights reserved.
     11# Distributed under the terms of the MIT License.
     12#
     13# Author:
     14#   Prasad Joshi <prasadjoshi.linux@gmail.com>
     15#
     16
     17eval `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,