File tree Expand file tree Collapse file tree 4 files changed +18
-178
lines changed Expand file tree Collapse file tree 4 files changed +18
-178
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# colors
3
3
for dircolors in gdircolors dircolors ; do
4
- if ( command -v $dircolors > /dev/null 2>&1 ) ; then
5
- [ -f " ${HOME} /.$dircolors " ] && eval ` $dircolors -b " ${HOME} /.$dircolors " ` && break
6
- [ -f /etc/DIR_COLORS ] && eval ` $dircolors -b /etc/DIR_COLORS` && break
7
- eval ` $dircolors -b` && break
4
+ if ( command -v $dircolors > /dev/null 2>&1 ) ; then
5
+ dircolor_text=' '
6
+ if [ -f " ${HOME} /.dir_colors" ] ; then
7
+ dircolor_text=` cat " ${HOME} /.dir_colors" `
8
+ eval ` $dircolors -b " ${HOME} /.dir_colors" `
9
+ elif [ -f /etc/DIR_COLORS ] ; then
10
+ dircolor_text=` cat /etc/DIR_COLORS`
11
+ eval ` $dircolors -b /etc/DIR_COLORS`
12
+ fi
13
+
14
+ if ( $dircolors --version 2> /dev/null | grep GNU > /dev/null 2>&1 ) ; then
15
+ dircolor_text=" ${dircolor_text} \nSTICKY_OTHER_WRITABLE 01;04;34;40"
16
+ dircolor_text=" ${dircolor_text} \nOTHER_WRITABLE 01;34;40"
17
+ fi
18
+
19
+ eval ` echo " ${dircolor_text} " | $dircolors -b -`
20
+ break
8
21
fi
9
22
done
10
23
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 39
39
my %links = (
40
40
screenrc => ' .screenrc' ,
41
41
toprc => ' .toprc' ,
42
- dircolors => ' .dircolors' ,
43
- gdircolors => ' .gdircolors' ,
42
+ dir_colors => ' .dir_colors' ,
44
43
lessfilter => ' .lessfilter' ,
45
44
46
45
vim => ' .vim' ,
You can’t perform that action at this time.
0 commit comments