[haiku-commits] haiku.r1alpha4: hrevr1alpha4-44638 - data/etc/profile.d src/bin/coreutils/src

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 21 Oct 2012 15:35:37 +0200 (CEST)

hrevr1alpha4-44638 adds 1 changeset to branch 'r1alpha4'
old head: ac2fa057fff8f87069229f99a34e71387e281733
new head: 0d2a1d9305e4a8fccc9bf9626daadcdc53a9173b

----------------------------------------------------------------------------

0d2a1d9: ls: Change color scheme for other writable directory (#4494)
  
  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.
  
  Signed-off-by: JÃrÃme Duval <jerome.duval@xxxxxxxxx>

                              [ Prasad Joshi <prasadjoshi.linux@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrevr1alpha4-44638
Commit:      0d2a1d9305e4a8fccc9bf9626daadcdc53a9173b
URL:         http://cgit.haiku-os.org/haiku/commit/?id=0d2a1d9
Author:      Prasad Joshi <prasadjoshi.linux@xxxxxxxxx>
Date:        Sun Oct  7 12:25:20 2012 UTC
Committer:   Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Commit-Date: Sun Oct 21 13:28:02 2012 UTC

Ticket:      https://dev.haiku-os.org/ticket/4494

----------------------------------------------------------------------------

3 files changed, 19 insertions(+), 2 deletions(-)
data/etc/profile.d/colorls.sh       |   17 +++++++++++++++++
src/bin/coreutils/src/dircolors.h   |    2 +-
src/bin/coreutils/src/dircolors.hin |    2 +-

----------------------------------------------------------------------------

diff --git a/data/etc/profile.d/colorls.sh b/data/etc/profile.d/colorls.sh
new file mode 100644
index 0000000..6d6784a
--- /dev/null
+++ b/data/etc/profile.d/colorls.sh
@@ -0,0 +1,17 @@
+#
+# colorls.sh - set up the ls color preferences.
+#
+# The environment variable LS_COLORS maintains colon (:) seperated list of
+# color preferences to be used by ls program. This script is placed in 
+# /etc/profile.d/ directory that would make sure the script is executed on
+# before a terminal is started. The script sets LS_COLORS environment with
+# suitable color setting for Haiku terminal.
+#
+# Copyright 2012 Haiku, Inc. All rights reserved. 
+# Distributed under the terms of the MIT License.
+#
+# Author:
+#      Prasad Joshi <prasadjoshi.linux@xxxxxxxxx>
+#
+
+eval `dircolors -b`
diff --git a/src/bin/coreutils/src/dircolors.h 
b/src/bin/coreutils/src/dircolors.h
index 19be33c..741d63d 100644
--- a/src/bin/coreutils/src/dircolors.h
+++ b/src/bin/coreutils/src/dircolors.h
@@ -78,7 +78,7 @@ static char const G_line[] =
   '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,
   '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,
   
'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,
-  '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,
+  '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,
   '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,
   '#',' ','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,
   'E','X','E','C',' ','0','1',';','3','2',0,
diff --git a/src/bin/coreutils/src/dircolors.hin 
b/src/bin/coreutils/src/dircolors.hin
index 6a4b1e3..46e025e 100644
--- a/src/bin/coreutils/src/dircolors.hin
+++ b/src/bin/coreutils/src/dircolors.hin
@@ -80,7 +80,7 @@ SETUID 37;41  # file that is setuid (u+s)
 SETGID 30;43   # file that is setgid (g+s)
 CAPABILITY 30;41       # file with capability
 STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
-OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
+OTHER_WRITABLE 34;43 # dir that is other-writable (o+w) and not sticky
 STICKY 37;44   # dir with the sticky bit set (+t) and not other-writable
 
 # This is for files with execute permission:


Other related posts:

  • » [haiku-commits] haiku.r1alpha4: hrevr1alpha4-44638 - data/etc/profile.d src/bin/coreutils/src - kallisti5