]>
Commit | Line | Data |
---|---|---|
3f642be3 MT |
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-unicode-256color | |
27 | TERM rxvt-unicode256 | |
28 | TERM screen-256color | |
29 | TERM xterm-256color | |
30 | TERM gnome-256color | |
31 | ||
32 | # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) | |
33 | EIGHTBIT 1 | |
34 | ||
35 | # Below are the color init strings for the basic file types. A color init | |
36 | # string consists of one or more of the following numeric codes: | |
37 | # Attribute codes: | |
38 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed | |
39 | # Text color(8 colors mode) codes: | |
40 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white | |
41 | # Background color(8 colors mode) codes: | |
42 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white | |
43 | # Text color(256 colors mode) codes: | |
44 | # Valid syntax for text 256color is 38;5;<color number> , where color number | |
45 | # is number between 0 and 255. | |
46 | # You may find following command useful to search the best one for you: | |
47 | # for ((x=0; x<=255; x++));do echo -e "${x}:\033[38;5;${x}mcolor\033[000m";done | |
48 | # Background color(256 colors mode) codes: | |
49 | # Valid syntax for background 256color is 48;5;<color number> , where | |
50 | # color number is number between 0 and 255. | |
51 | # You may find following command useful to search the best one for you: | |
52 | # for ((x=0; x<=255; x++));do echo -e "${x}:\033[48;5;${x}mcolor\033[000m";done | |
53 | ||
54 | #NORMAL 00 # global default, no color code at all | |
55 | #FILE 00 # normal file, use no color at all | |
56 | RESET 0 # reset to "normal" color | |
57 | DIR 38;5;27 # directory | |
58 | LINK 38;5;51 # symbolic link (If you set this to 'target' instead of a | |
59 | # numerical value, the color is as for the file pointed to.) | |
60 | MULTIHARDLINK 44;38;5;15 # regular file with more than one link | |
61 | FIFO 40;38;5;11 # pipe | |
62 | SOCK 38;5;13 # socket | |
63 | DOOR 38;5;5 # door | |
64 | BLK 48;5;232;38;5;11 # block device driver | |
65 | CHR 48;5;232;38;5;3 # character device driver | |
66 | ORPHAN 48;5;232;38;5;9 # symlink to nonexistent file, or non-stat'able file | |
67 | MISSING 05;48;5;232;38;5;15 # ... and the files they point to | |
68 | SETUID 48;5;196;38;5;15 # file that is setuid (u+s) | |
69 | SETGID 48;5;11;38;5;16 # file that is setgid (g+s) | |
70 | CAPABILITY 48;5;196;38;5;226 # file with capability | |
71 | STICKY_OTHER_WRITABLE 48;5;10;38;5;16 # dir that is sticky and other-writable (+t,o+w) | |
72 | OTHER_WRITABLE 48;5;10;38;5;21 # dir that is other-writable (o+w) and not sticky | |
73 | STICKY 48;5;21;38;5;15 # dir with the sticky bit set (+t) and not other-writable | |
74 | ||
75 | # This is for files with execute permission: | |
76 | EXEC 38;5;34 | |
77 | ||
78 | # List any file extensions like '.gz' or '.tar' that you would like ls | |
79 | # to colorize below. Put the extension, a space, and the color init string. | |
80 | # (and any comments you want to add after a '#') | |
81 | # executables (bright green) | |
82 | #.cmd 38;5;34 | |
83 | #.exe 38;5;34 | |
84 | #.com 38;5;34 | |
85 | #.btm 38;5;34 | |
86 | #.bat 38;5;34 | |
87 | #.sh 38;5;34 | |
88 | #.csh 38;5;34 | |
89 | # archives or compressed (bright red) | |
90 | .tar 38;5;9 | |
91 | .tgz 38;5;9 | |
92 | .arj 38;5;9 | |
93 | .taz 38;5;9 | |
94 | .lzh 38;5;9 | |
95 | .lzma 38;5;9 | |
96 | .tlz 38;5;9 | |
97 | .txz 38;5;9 | |
98 | .zip 38;5;9 | |
99 | .z 38;5;9 | |
100 | .Z 38;5;9 | |
101 | .dz 38;5;9 | |
102 | .gz 38;5;9 | |
103 | .lz 38;5;9 | |
104 | .xz 38;5;9 | |
105 | .bz2 38;5;9 | |
106 | .tbz 38;5;9 | |
107 | .tbz2 38;5;9 | |
108 | .bz 38;5;9 | |
109 | .tz 38;5;9 | |
110 | .deb 38;5;9 | |
111 | .rpm 38;5;9 | |
112 | .jar 38;5;9 | |
113 | .war 38;5;9 | |
114 | .ear 38;5;9 | |
115 | .sar 38;5;9 | |
116 | .rar 38;5;9 | |
117 | .ace 38;5;9 | |
118 | .zoo 38;5;9 | |
119 | .cpio 38;5;9 | |
120 | .7z 38;5;9 | |
121 | .rz 38;5;9 | |
122 | ||
123 | # image formats (magenta) | |
124 | .jpg 38;5;13 | |
125 | .jpeg 38;5;13 | |
126 | .gif 38;5;13 | |
127 | .bmp 38;5;13 | |
128 | .pbm 38;5;13 | |
129 | .pgm 38;5;13 | |
130 | .ppm 38;5;13 | |
131 | .tga 38;5;13 | |
132 | .xbm 38;5;13 | |
133 | .xpm 38;5;13 | |
134 | .tif 38;5;13 | |
135 | .tiff 38;5;13 | |
136 | .png 38;5;13 | |
137 | .svg 38;5;13 | |
138 | .svgz 38;5;13 | |
139 | .mng 38;5;13 | |
140 | .pcx 38;5;13 | |
141 | .mov 38;5;13 | |
142 | .mpg 38;5;13 | |
143 | .mpeg 38;5;13 | |
144 | .m2v 38;5;13 | |
145 | .mkv 38;5;13 | |
146 | .ogm 38;5;13 | |
147 | .mp4 38;5;13 | |
148 | .m4v 38;5;13 | |
149 | .mp4v 38;5;13 | |
150 | .vob 38;5;13 | |
151 | .qt 38;5;13 | |
152 | .nuv 38;5;13 | |
153 | .wmv 38;5;13 | |
154 | .asf 38;5;13 | |
155 | .rm 38;5;13 | |
156 | .rmvb 38;5;13 | |
157 | .flc 38;5;13 | |
158 | .avi 38;5;13 | |
159 | .fli 38;5;13 | |
160 | .flv 38;5;13 | |
161 | .gl 38;5;13 | |
162 | .dl 38;5;13 | |
163 | .xcf 38;5;13 | |
164 | .xwd 38;5;13 | |
165 | .yuv 38;5;13 | |
166 | .cgm 38;5;13 | |
167 | .emf 38;5;13 | |
168 | ||
169 | # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions | |
170 | .axv 38;5;13 | |
171 | .anx 38;5;13 | |
172 | .ogv 38;5;13 | |
173 | .ogx 38;5;13 | |
174 | ||
175 | # audio formats (cyan) | |
176 | .aac 38;5;45 | |
177 | .au 38;5;45 | |
178 | .flac 38;5;45 | |
179 | .mid 38;5;45 | |
180 | .midi 38;5;45 | |
181 | .mka 38;5;45 | |
182 | .mp3 38;5;45 | |
183 | .mpc 38;5;45 | |
184 | .ogg 38;5;45 | |
185 | .ra 38;5;45 | |
186 | .wav 38;5;45 | |
187 | ||
188 | # http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions | |
189 | .axa 38;5;45 | |
190 | .oga 38;5;45 | |
191 | .spx 38;5;45 | |
192 | .xspf 38;5;45 | |
193 | ||
194 | # colorize binary documents (brown) | |
195 | #.pdf 00;33 | |
196 | #.ps 00;33 | |
197 | #.ps.gz 00;33 | |
198 | #.tex 00;33 | |
199 | #.xls 00;33 | |
200 | #.xlsx 00;33 | |
201 | #.ppt 00;33 | |
202 | #.pptx 00;33 | |
203 | #.rtf 00;33 | |
204 | #.doc 00;33 | |
205 | #.docx 00;33 | |
206 | #.odt 00;33 | |
207 | #.ods 00;33 | |
208 | #.odp 00;33 | |
209 | #.epub 00;33 | |
210 | #.abw 00;33 | |
211 | #.wpd 00;33 | |
212 | # | |
213 | # colorize text documents (brown) | |
214 | #.txt 00;33 | |
215 | #.patch 00;33 | |
216 | #.diff 00;33 | |
217 | #.log 00;33 | |
218 | #.htm 00;33 | |
219 | #.html 00;33 | |
220 | #.shtml 00;33 | |
221 | #.xml 00;33 |