]>
Commit | Line | Data |
---|---|---|
e2f0cad1 JR |
1 | # Configuration file for the color ls utility |
2 | # Synchronized with coreutils 8.5 dircolors | |
3 | # This file goes in the /etc directory, and must be world readable. | |
4 | # You can copy this file to .dir_colors in your $HOME directory to override | |
5 | # the system defaults. | |
6 | ||
7 | # COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not | |
8 | # pipes. 'all' adds color characters to all output. 'none' shuts colorization | |
9 | # off. | |
10 | COLOR tty | |
11 | ||
12 | # Extra command line options for ls go here. | |
13 | # Basically these ones are: | |
14 | # -F = show '/' for dirs, '*' for executables, etc. | |
15 | # -T 0 = don't trust tab spacing when formatting ls output. | |
16 | OPTIONS -F -T 0 | |
17 | ||
18 | # Below, there should be one TERM entry for each termtype that is colorizable | |
19 | TERM putty-256color | |
20 | TERM rxvt-256color | |
21 | TERM rxvt-unicode-256color | |
22 | TERM rxvt-unicode256 | |
23 | TERM screen-256color | |
24 | TERM xterm-256color | |
25 | TERM gnome-256color | |
26 | TERM st-256color | |
27 | ||
28 | # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) | |
29 | EIGHTBIT 1 | |
30 | ||
31 | # Below are the color init strings for the basic file types. A color init | |
32 | # string consists of one or more of the following numeric codes: | |
33 | # Attribute codes: | |
34 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed | |
35 | # Text color codes: | |
36 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white | |
37 | # Background color codes: | |
38 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white | |
39 | # | |
40 | # Text color(256 colors mode) codes: | |
41 | # Valid syntax for text 256color is 38;5;<color number> , where color number | |
42 | # is number between 0 and 255. | |
43 | # You may find following command useful to search the best one for you: | |
44 | # for ((x=0; x<=255; x++));do echo -e "${x}:\033[38;5;${x}mcolor\033[000m";done | |
45 | # Background color(256 colors mode) codes: | |
46 | # Valid syntax for background 256color is 48;5;<color number> , where | |
47 | # color number is number between 0 and 255. | |
48 | # You may find following command useful to search the best one for you: | |
49 | # for ((x=0; x<=255; x++));do echo -e "${x}:\033[48;5;${x}mcolor\033[000m";done | |
50 | NORMAL 00 # global default, although everything should be something. | |
51 | FILE 00 # normal file | |
52 | RESET 0 # reset to "normal" color | |
53 | DIR 38;5;27 # directory | |
54 | LINK 38;5;51 # symbolic link (If you set this to 'target' instead of a | |
55 | # numerical value, the color is as for the file pointed to.) | |
56 | MULTIHARDLINK 44;38;5;15 # regular file with more than one link | |
57 | FIFO 40;38;5;214 # pipe | |
58 | SOCK 38;5;13 # socket | |
59 | DOOR 38;5;5 # door | |
60 | BLK 48;5;232;38;5;226 # block device driver | |
61 | CHR 48;5;232;38;5;3 # character device driver | |
62 | ORPHAN 48;5;232;38;5;196 # symlink to nonexistent file, or non-stat'able file | |
63 | MISSING 05;48;5;232;38;5;196 # ... and the files they point to | |
64 | SETUID 48;5;196;38;5;15 # file that is setuid (u+s) | |
65 | SETGID 48;5;130;38;5;16 # file that is setgid (g+s) | |
66 | CAPABILITY 48;5;196;38;5;226 # file with capability | |
67 | STICKY_OTHER_WRITABLE 48;5;40;38;5;16 # dir that is sticky and other-writable (+t,o+w) | |
68 | OTHER_WRITABLE 48;5;40;38;5;21 # dir that is other-writable (o+w) and not sticky | |
69 | STICKY 48;5;21;38;5;15 # dir with the sticky bit set (+t) and not other-writable | |
70 | ||
71 | # This is for files with execute permission: | |
72 | EXEC 38;5;82 | |
73 | ||
74 | # List any file extensions like '.gz' or '.tar' that you would like ls | |
75 | # to colorize below. Put the extension, a space, and the color init string. | |
76 | # (and any comments you want to add after a '#') | |
77 | ||
78 | # executables (bright green) | |
79 | .bat 38;5;34 | |
80 | .btm 38;5;34 | |
81 | .cmd 38;5;34 | |
82 | .com 38;5;34 | |
83 | .csh 38;5;34 | |
84 | .exe 38;5;34 | |
85 | .sh 38;5;34 | |
86 | ||
87 | # archives or compressed (bright red) | |
88 | .7z 38;5;196 | |
89 | .7zip 38;5;196 | |
90 | .ace 38;5;196 | |
91 | .alz 38;5;196 | |
92 | .arc 38;5;196 | |
93 | .arj 38;5;196 | |
94 | .bz 38;5;196 | |
95 | .bz2 38;5;196 | |
96 | .cab 38;5;196 | |
97 | .cpio 38;5;196 | |
98 | .deb 38;5;196 | |
99 | .dz 38;5;196 | |
100 | .ear 38;5;196 | |
101 | .gz 38;5;196 | |
102 | .img 38;5;196 | |
103 | .jar 38;5;196 | |
104 | .lha 38;5;196 | |
105 | .lrz 38;5;196 | |
106 | .lz 38;5;196 | |
107 | .lz4 38;5;196 | |
108 | .lzh 38;5;196 | |
109 | .lzma 38;5;196 | |
110 | .lzo 38;5;196 | |
111 | .rar 38;5;196 | |
112 | .rpm 38;5;196 | |
113 | .rz 38;5;196 | |
114 | .sar 38;5;196 | |
115 | .t7z 38;5;196 | |
116 | .tar 38;5;196 | |
117 | .taz 38;5;196 | |
118 | .tbz 38;5;196 | |
119 | .tbz2 38;5;196 | |
120 | .tgz 38;5;196 | |
121 | .tlz 38;5;196 | |
122 | .tpz 38;5;196 | |
123 | .trpm 38;5;196 | |
124 | .txz 38;5;196 | |
125 | .tz 38;5;196 | |
126 | .tzo 38;5;196 | |
127 | .war 38;5;196 | |
128 | .xz 38;5;196 | |
129 | .z 38;5;196 | |
130 | .Z 38;5;196 | |
131 | .zip 38;5;196 | |
132 | .zoo 38;5;196 | |
133 | ||
134 | # image formats (bright magenta) | |
135 | .asf 38;5;13 | |
136 | .avi 38;5;13 | |
137 | .bmp 38;5;13 | |
138 | .cdr 38;5;13 | |
139 | .cgm 38;5;13 | |
140 | .dl 38;5;13 | |
141 | .emf 38;5;13 | |
142 | .flc 38;5;13 | |
143 | .fli 38;5;13 | |
144 | .flv 38;5;13 | |
145 | .gif 38;5;13 | |
146 | .gl 38;5;13 | |
147 | .jpeg 38;5;13 | |
148 | .jpg 38;5;13 | |
149 | .JPG 38;5;13 | |
150 | .m2v 38;5;13 | |
151 | .m4v 38;5;13 | |
152 | .mkv 38;5;13 | |
153 | .mng 38;5;13 | |
154 | .mov 38;5;13 | |
155 | .mp4 38;5;13 | |
156 | .mp4v 38;5;13 | |
157 | .mpeg 38;5;13 | |
158 | .mpg 38;5;13 | |
159 | .nuv 38;5;13 | |
160 | .ogm 38;5;13 | |
161 | .pbm 38;5;13 | |
162 | .pcx 38;5;13 | |
163 | .pgm 38;5;13 | |
164 | .png 38;5;13 | |
165 | .ppm 38;5;13 | |
166 | .qt 38;5;13 | |
167 | .rm 38;5;13 | |
168 | .rmvb 38;5;13 | |
169 | .svg 38;5;13 | |
170 | .svgz 38;5;13 | |
171 | .tga 38;5;13 | |
172 | .tif 38;5;13 | |
173 | .tiff 38;5;13 | |
174 | .vob 38;5;13 | |
175 | .webm 38;5;13 | |
176 | .wmv 38;5;13 | |
177 | .xbm 38;5;13 | |
178 | .xcf 38;5;13 | |
179 | .xpm 38;5;13 | |
180 | .xwd 38;5;13 | |
181 | .yuv 38;5;13 | |
182 | ||
183 | # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions | |
184 | .axv 38;5;13 | |
185 | .anx 38;5;13 | |
186 | .ogv 38;5;13 | |
187 | .ogx 38;5;13 | |
188 | ||
189 | # audio formats (white) | |
190 | .aac 01;37 | |
191 | .au 01;37 | |
192 | .flac 01;37 | |
193 | .mid 01;37 | |
194 | .midi 01;37 | |
195 | .mka 01;37 | |
196 | .mp3 01;37 | |
197 | .mpc 01;37 | |
198 | .ogg 01;37 | |
199 | .ra 01;37 | |
200 | .wav 01;37 | |
201 | ||
202 | # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions | |
203 | .axa 01;37 | |
204 | .oga 01;37 | |
205 | .spx 01;37 | |
206 | .xspf 01;37 | |
207 | ||
208 | # documents (cyan) | |
209 | .abw 38;5;44 | |
210 | .bib 38;5;44 | |
211 | .doc 38;5;44 | |
212 | .docx 38;5;44 | |
213 | .dot 38;5;44 | |
214 | .dvi 38;5;44 | |
215 | .eps 38;5;44 | |
216 | .epub 38;5;44 | |
217 | .info 38;5;44 | |
218 | .kpr 38;5;44 | |
219 | .me 38;5;44 | |
220 | .ms 38;5;44 | |
221 | .odp 38;5;44 | |
222 | .ods 38;5;44 | |
223 | .odt 38;5;44 | |
224 | .ps 38;5;44 | |
225 | .ps.gz 38;5;44 | |
226 | .pdf 38;5;44 | |
227 | .pps 38;5;44 | |
228 | .ppt 38;5;44 | |
229 | .pptx 38;5;44 | |
230 | .rtf 38;5;44 | |
231 | .stw 38;5;44 | |
232 | .sxc 38;5;44 | |
233 | .sxw 38;5;44 | |
234 | .tex 38;5;44 | |
235 | .texi 38;5;44 | |
236 | .texinfo 38;5;44 | |
237 | .tm 38;5;44 | |
238 | .txt 38;5;44 | |
239 | .wri 38;5;44 | |
240 | .wpd 38;5;44 | |
241 | .xls 38;5;44 | |
242 | .xlsx 38;5;44 | |
243 | .xlw 38;5;44 | |
244 | ||
245 | # web (yellow) | |
246 | .cgi 38;5;3 | |
247 | .css 38;5;3 | |
248 | .htm 38;5;3 | |
249 | .html 38;5;3 | |
250 | .php 38;5;3 | |
251 | .phtml 38;5;3 | |
252 | .shtml 38;5;3 | |
253 | .xml 38;5;3 | |
254 | ||
255 | # devel (bright yellow) | |
256 | .ac 38;5;226 | |
257 | .am 38;5;226 | |
258 | .c 38;5;226 | |
259 | .C 38;5;226 | |
260 | .cc 38;5;226 | |
261 | .cpp 38;5;226 | |
262 | .diff 38;5;226 | |
263 | .f 38;5;226 | |
264 | .h 38;5;226 | |
265 | .in 38;5;226 | |
266 | .o 38;5;226 | |
267 | .patch 38;5;226 | |
268 | .pm 38;5;226 | |
269 | .po 38;5;226 | |
270 | .pot 38;5;226 | |
271 | .s 38;5;226 | |
272 | .spec 38;5;226 |