4 |
- |
1 |
# Configuration file for the 256color ls utility
|
|
|
2 |
# This file goes in the /etc directory, and must be world readable.
|
|
|
3 |
# Synchronized with coreutils 8.5 dircolors
|
|
|
4 |
# You can copy this file to .dir_colors in your $HOME directory to override
|
|
|
5 |
# the system defaults.
|
|
|
6 |
# In the case that you are not satisfied with supplied colors, please
|
|
|
7 |
# submit your color configuration or attach your file with colors readable
|
|
|
8 |
# on ALL color background schemas (white,gray,black) to RedHat Bugzilla
|
|
|
9 |
# ticket on https://bugzilla.redhat.com/show_bug.cgi?id=429121 . TIA.
|
|
|
10 |
# Please just keep ls color conventions from 8 color scheme.
|
|
|
11 |
|
|
|
12 |
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
|
|
|
13 |
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
|
|
|
14 |
# off.
|
|
|
15 |
COLOR tty
|
|
|
16 |
|
|
|
17 |
# Extra command line options for ls go here.
|
|
|
18 |
# Basically these ones are:
|
|
|
19 |
# -F = show '/' for dirs, '*' for executables, etc.
|
|
|
20 |
# -T 0 = don't trust tab spacing when formatting ls output.
|
|
|
21 |
OPTIONS -F -T 0
|
|
|
22 |
|
|
|
23 |
# Below, there should be one TERM entry for each termtype that is colorizable
|
|
|
24 |
TERM putty-256color
|
|
|
25 |
TERM rxvt-256color
|
|
|
26 |
TERM rxvt-unicode256
|
|
|
27 |
TERM screen-256color
|
|
|
28 |
TERM xterm-256color
|
|
|
29 |
TERM gnome-256color
|
|
|
30 |
|
|
|
31 |
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
|
|
|
32 |
EIGHTBIT 1
|
|
|
33 |
|
|
|
34 |
# Below are the color init strings for the basic file types. A color init
|
|
|
35 |
# string consists of one or more of the following numeric codes:
|
|
|
36 |
# Attribute codes:
|
|
|
37 |
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
|
|
38 |
# Text color(8 colors mode) codes:
|
|
|
39 |
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
|
|
40 |
# Background color(8 colors mode) codes:
|
|
|
41 |
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
|
|
42 |
# Text color(256 colors mode) codes:
|
|
|
43 |
# Valid syntax for text 256color is 38;5;<color number> , where color number
|
|
|
44 |
# is number between 0 and 255.
|
|
|
45 |
# You may find following command useful to search the best one for you:
|
|
|
46 |
# for ((x=0; x<=255; x++));do echo -e "${x}:\033[38;5;${x}mcolor\033[000m";done
|
|
|
47 |
# Background color(256 colors mode) codes:
|
|
|
48 |
# Valid syntax for background 256color is 48;5;<color number> , where
|
|
|
49 |
# color number is number between 0 and 255.
|
|
|
50 |
# You may find following command useful to search the best one for you:
|
|
|
51 |
# for ((x=0; x<=255; x++));do echo -e "${x}:\033[48;5;${x}mcolor\033[000m";done
|
|
|
52 |
|
|
|
53 |
#NORMAL 00 # global default, no color code at all
|
|
|
54 |
#FILE 00 # normal file, use no color at all
|
|
|
55 |
RESET 0 # reset to "normal" color
|
|
|
56 |
DIR 38;5;27 # directory
|
|
|
57 |
LINK 38;5;51 # symbolic link (If you set this to 'target' instead of a
|
|
|
58 |
# numerical value, the color is as for the file pointed to.)
|
|
|
59 |
MULTIHARDLINK 44;38;5;15 # regular file with more than one link
|
|
|
60 |
FIFO 40;38;5;11 # pipe
|
|
|
61 |
SOCK 38;5;13 # socket
|
|
|
62 |
DOOR 38;5;5 # door
|
|
|
63 |
BLK 48;5;232;38;5;11 # block device driver
|
|
|
64 |
CHR 48;5;232;38;5;3 # character device driver
|
|
|
65 |
ORPHAN 48;5;232;38;5;9 # symlink to nonexistent file, or non-stat'able file
|
|
|
66 |
MISSING 05;48;5;232;38;5;15 # ... and the files they point to
|
|
|
67 |
SETUID 48;5;196;38;5;15 # file that is setuid (u+s)
|
|
|
68 |
SETGID 48;5;11;38;5;16 # file that is setgid (g+s)
|
|
|
69 |
CAPABILITY 48;5;196;38;5;226 # file with capability
|
|
|
70 |
STICKY_OTHER_WRITABLE 48;5;10;38;5;16 # dir that is sticky and other-writable (+t,o+w)
|
|
|
71 |
OTHER_WRITABLE 48;5;10;38;5;21 # dir that is other-writable (o+w) and not sticky
|
|
|
72 |
STICKY 48;5;21;38;5;15 # dir with the sticky bit set (+t) and not other-writable
|
|
|
73 |
|
|
|
74 |
# This is for files with execute permission:
|
|
|
75 |
EXEC 38;5;34
|
|
|
76 |
|
|
|
77 |
# List any file extensions like '.gz' or '.tar' that you would like ls
|
|
|
78 |
# to colorize below. Put the extension, a space, and the color init string.
|
|
|
79 |
# (and any comments you want to add after a '#')
|
|
|
80 |
# executables (bright green)
|
|
|
81 |
#.cmd 38;5;34
|
|
|
82 |
#.exe 38;5;34
|
|
|
83 |
#.com 38;5;34
|
|
|
84 |
#.btm 38;5;34
|
|
|
85 |
#.bat 38;5;34
|
|
|
86 |
#.sh 38;5;34
|
|
|
87 |
#.csh 38;5;34
|
|
|
88 |
# archives or compressed (bright red)
|
|
|
89 |
.tar 38;5;9
|
|
|
90 |
.tgz 38;5;9
|
|
|
91 |
.arj 38;5;9
|
|
|
92 |
.taz 38;5;9
|
|
|
93 |
.lzh 38;5;9
|
|
|
94 |
.lzma 38;5;9
|
|
|
95 |
.tlz 38;5;9
|
|
|
96 |
.txz 38;5;9
|
|
|
97 |
.zip 38;5;9
|
|
|
98 |
.z 38;5;9
|
|
|
99 |
.Z 38;5;9
|
|
|
100 |
.dz 38;5;9
|
|
|
101 |
.gz 38;5;9
|
|
|
102 |
.lz 38;5;9
|
|
|
103 |
.xz 38;5;9
|
|
|
104 |
.bz2 38;5;9
|
|
|
105 |
.tbz 38;5;9
|
|
|
106 |
.tbz2 38;5;9
|
|
|
107 |
.bz 38;5;9
|
|
|
108 |
.tz 38;5;9
|
|
|
109 |
.deb 38;5;9
|
|
|
110 |
.rpm 38;5;9
|
|
|
111 |
.jar 38;5;9
|
|
|
112 |
.rar 38;5;9
|
|
|
113 |
.ace 38;5;9
|
|
|
114 |
.zoo 38;5;9
|
|
|
115 |
.cpio 38;5;9
|
|
|
116 |
.7z 38;5;9
|
|
|
117 |
.rz 38;5;9
|
|
|
118 |
|
|
|
119 |
# image formats (magenta)
|
|
|
120 |
.jpg 38;5;13
|
|
|
121 |
.jpeg 38;5;13
|
|
|
122 |
.gif 38;5;13
|
|
|
123 |
.bmp 38;5;13
|
|
|
124 |
.pbm 38;5;13
|
|
|
125 |
.pgm 38;5;13
|
|
|
126 |
.ppm 38;5;13
|
|
|
127 |
.tga 38;5;13
|
|
|
128 |
.xbm 38;5;13
|
|
|
129 |
.xpm 38;5;13
|
|
|
130 |
.tif 38;5;13
|
|
|
131 |
.tiff 38;5;13
|
|
|
132 |
.png 38;5;13
|
|
|
133 |
.svg 38;5;13
|
|
|
134 |
.svgz 38;5;13
|
|
|
135 |
.mng 38;5;13
|
|
|
136 |
.pcx 38;5;13
|
|
|
137 |
.mov 38;5;13
|
|
|
138 |
.mpg 38;5;13
|
|
|
139 |
.mpeg 38;5;13
|
|
|
140 |
.m2v 38;5;13
|
|
|
141 |
.mkv 38;5;13
|
|
|
142 |
.ogm 38;5;13
|
|
|
143 |
.mp4 38;5;13
|
|
|
144 |
.m4v 38;5;13
|
|
|
145 |
.mp4v 38;5;13
|
|
|
146 |
.vob 38;5;13
|
|
|
147 |
.qt 38;5;13
|
|
|
148 |
.nuv 38;5;13
|
|
|
149 |
.wmv 38;5;13
|
|
|
150 |
.asf 38;5;13
|
|
|
151 |
.rm 38;5;13
|
|
|
152 |
.rmvb 38;5;13
|
|
|
153 |
.flc 38;5;13
|
|
|
154 |
.avi 38;5;13
|
|
|
155 |
.fli 38;5;13
|
|
|
156 |
.flv 38;5;13
|
|
|
157 |
.gl 38;5;13
|
|
|
158 |
.dl 38;5;13
|
|
|
159 |
.xcf 38;5;13
|
|
|
160 |
.xwd 38;5;13
|
|
|
161 |
.yuv 38;5;13
|
|
|
162 |
.cgm 38;5;13
|
|
|
163 |
.emf 38;5;13
|
|
|
164 |
|
|
|
165 |
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
|
|
166 |
.axv 38;5;13
|
|
|
167 |
.anx 38;5;13
|
|
|
168 |
.ogv 38;5;13
|
|
|
169 |
.ogx 38;5;13
|
|
|
170 |
|
|
|
171 |
# audio formats (cyan)
|
|
|
172 |
.aac 38;5;45
|
|
|
173 |
.au 38;5;45
|
|
|
174 |
.flac 38;5;45
|
|
|
175 |
.mid 38;5;45
|
|
|
176 |
.midi 38;5;45
|
|
|
177 |
.mka 38;5;45
|
|
|
178 |
.mp3 38;5;45
|
|
|
179 |
.mpc 38;5;45
|
|
|
180 |
.ogg 38;5;45
|
|
|
181 |
.ra 38;5;45
|
|
|
182 |
.wav 38;5;45
|
|
|
183 |
|
|
|
184 |
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
|
|
185 |
.axa 38;5;45
|
|
|
186 |
.oga 38;5;45
|
|
|
187 |
.spx 38;5;45
|
|
|
188 |
.xspf 38;5;45
|