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@gmail.com>
This commit is contained in:
parent
ed3ea3b05c
commit
3cd9a30037
17
data/etc/profile.d/colorls.sh
Normal file
17
data/etc/profile.d/colorls.sh
Normal file
@ -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@gmail.com>
|
||||
#
|
||||
|
||||
eval `dircolors -b`
|
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user