On Sun, Oct 7, 2012 at 6:09 PM, Prasad Joshi <prasadjoshi124@xxxxxxxxx> wrote: > On Fri, Oct 5, 2012 at 10:20 AM, scottmc <scottmc2@xxxxxxxxx> wrote: >> Prasad, >> Perhaps you can look into a clean solution to this one as well: >> https://dev.haiku-os.org/ticket/4494 > > Following patch produces more readable display for other writable directories > > prasad@pjoshi:~/sources/Haiku/haiku$ cat > 0001-Change-color-scheme-for-other-writable-directory.patch > From 3c937a0740e589ec32d06dd8c81755aece061c4d Mon Sep 17 00:00:00 2001 > From: Prasad Joshi <prasadjoshi.linux@xxxxxxxxx> > 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 > --- Attaching a screen-shot of ls output after applying the patch. Please let me know you comments. Thanks and Warm Regards, Prasad > 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 > --- /dev/null > +++ b/data/etc/profile.d/colorls.sh > @@ -0,0 +1 @@ > +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, > -- > 1.7.5.4 > > > > > >> >> -scottmc >>
Attachment:
ls_color_ow.png
Description: PNG image