comparison dot_lscolors @ 351:7838713fd3b4

Add color configuration for ls Highlights filetypes differently based on extension
author Zeger Van de Vannet <zegervdv@me.com>
date Fri, 19 Feb 2021 17:37:38 +0100
parents
children 836332643468
comparison
equal deleted inserted replaced
350:a9910306741c 351:7838713fd3b4
1 # Exact Solarized Dark color theme for the color GNU ls utility.
2 # Designed for dircolors (GNU coreutils) 5.97
3 #
4 # This simple theme was simultaneously designed for these terminal color schemes:
5 # - Solarized dark (best)
6 # - Solarized light
7 # - default dark
8 # - default light
9 # with a slight optimization for Solarized Dark.
10 #
11 # How the colors were selected:
12 # - Terminal emulators often have an option typically enabled by default that makes
13 # bold a different color. It is important to leave this option enabled so that
14 # you can access the entire 16-color Solarized palette, and not just 8 colors.
15 # - We favor universality over a greater number of colors. So we limit the number
16 # of colors so that this theme will work out of the box in all terminals,
17 # Solarized or not, dark or light.
18 # - We choose to have the following category of files:
19 # NORMAL & FILE, DIR, LINK, EXEC and
20 # editable text including source, unimportant text, binary docs & multimedia source
21 # files, viewable multimedia, archived/compressed, and unimportant non-text
22 # - For uniqueness, we stay away from the Solarized foreground colors are -- either
23 # base00 (brightyellow) or base0 (brightblue). However, they can be used if
24 # you know what the bg/fg colors of your terminal are, in order to optimize the display.
25 # - 3 different options are provided: universal, solarized dark, and solarized light.
26 # The only difference between the universal scheme and one that's optimized for
27 # dark/light is the color of "unimportant" files, which should blend more with the
28 # background
29 # - We note that blue is the hardest color to see on dark bg and yellow is the hardest
30 # color to see on light bg (with blue being particularly bad). So we choose yellow
31 # for multimedia files which are usually accessed in a GUI folder browser anyway.
32 # And blue is kept for custom use of this scheme's user.
33 # - See table below to see the assignments.
34
35
36 # Installation instructions:
37 # This file goes in the /etc directory, and must be world readable.
38 # You can copy this file to .dir_colors in your $HOME directory to override
39 # the system defaults.
40
41 # COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
42 # pipes. 'all' adds color characters to all output. 'none' shuts colorization
43 # off.
44 COLOR tty
45
46 # Below, there should be one TERM entry for each termtype that is colorizable
47 TERM ansi
48 TERM color_xterm
49 TERM color-xterm
50 TERM con132x25
51 TERM con132x30
52 TERM con132x43
53 TERM con132x60
54 TERM con80x25
55 TERM con80x28
56 TERM con80x30
57 TERM con80x43
58 TERM con80x50
59 TERM con80x60
60 TERM cons25
61 TERM console
62 TERM cygwin
63 TERM dtterm
64 TERM dvtm
65 TERM dvtm-256color
66 TERM Eterm
67 TERM eterm-color
68 TERM fbterm
69 TERM gnome
70 TERM gnome-256color
71 TERM jfbterm
72 TERM konsole
73 TERM konsole-256color
74 TERM kterm
75 TERM linux
76 TERM linux-c
77 TERM mach-color
78 TERM mlterm
79 TERM nxterm
80 TERM putty
81 TERM putty-256color
82 TERM rxvt
83 TERM rxvt-256color
84 TERM rxvt-cygwin
85 TERM rxvt-cygwin-native
86 TERM rxvt-unicode
87 TERM rxvt-unicode256
88 TERM rxvt-unicode-256color
89 TERM screen
90 TERM screen-16color
91 TERM screen-16color-bce
92 TERM screen-16color-s
93 TERM screen-16color-bce-s
94 TERM screen-256color
95 TERM screen-256color-bce
96 TERM screen-256color-s
97 TERM screen-256color-bce-s
98 TERM screen-256color-italic
99 TERM screen-bce
100 TERM screen-w
101 TERM screen.linux
102 TERM screen.xterm-256color
103 TERM screen.xterm-new
104 TERM st
105 TERM st-meta
106 TERM st-256color
107 TERM st-meta-256color
108 TERM tmux
109 TERM tmux-256color
110 TERM vt100
111 TERM xterm
112 TERM xterm-new
113 TERM xterm-16color
114 TERM xterm-256color
115 TERM xterm-256color-italic
116 TERM xterm-88color
117 TERM xterm-color
118 TERM xterm-debian
119 TERM xterm-termite
120
121 # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
122 EIGHTBIT 1
123
124 #############################################################################
125 # Below are the color init strings for the basic file types. A color init
126 # string consists of one or more of the following numeric codes:
127 #
128 # Attribute codes:
129 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
130 # Text color codes:
131 # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
132 # Background color codes:
133 # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
134 #
135 # NOTES:
136 # - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html
137 # - Color combinations
138 # ANSI Color code Solarized Notes Universal SolDark SolLight
139 # ~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~ ~~~~~~~~~ ~~~~~~~ ~~~~~~~~
140 # 00 none NORMAL, FILE <SAME> <SAME>
141 # 30 black base02
142 # 01;30 bright black base03 bg of SolDark
143 # 31 red red docs & mm src <SAME> <SAME>
144 # 01;31 bright red orange EXEC <SAME> <SAME>
145 # 32 green green editable text <SAME> <SAME>
146 # 01;32 bright green base01 unimportant text <SAME>
147 # 33 yellow yellow unclear in light bg multimedia <SAME> <SAME>
148 # 01;33 bright yellow base00 fg of SolLight unimportant non-text
149 # 34 blue blue unclear in dark bg user customized <SAME> <SAME>
150 # 01;34 bright blue base0 fg in SolDark unimportant text
151 # 35 magenta magenta LINK <SAME> <SAME>
152 # 01;35 bright magenta violet archive/compressed <SAME> <SAME>
153 # 36 cyan cyan DIR <SAME> <SAME>
154 # 01;36 bright cyan base1 unimportant non-text <SAME>
155 # 37 white base2
156 # 01;37 bright white base3 bg in SolLight
157 # 05;37;41 unclear in Putty dark
158
159
160 ### By file type
161
162 # global default
163 NORMAL 00
164 # normal file
165 FILE 00
166 # directory
167 DIR 34
168 # 777 directory
169 OTHER_WRITABLE 34;40
170 STICKY_OTHER_WRITABLE 00
171 # symbolic link
172 LINK 35
173
174 # pipe, socket, block device, character device (blue bg)
175 FIFO 30;44
176 SOCK 35;44
177 DOOR 35;44 # Solaris 2.5 and later
178 BLK 33;44
179 CHR 37;44
180
181
182 #############################################################################
183 ### By file attributes
184
185 # Orphaned symlinks (blinking white on red)
186 # Blink may or may not work (works on iTerm dark or light, and Putty dark)
187 ORPHAN 05;37;41
188 # ... and the files that orphaned symlinks point to (blinking white on red)
189 MISSING 05;37;41
190
191 # files with execute permission
192 EXEC 01;31 # Unix
193 .cmd 01;31 # Win
194 .exe 01;31 # Win
195 .com 01;31 # Win
196 .bat 01;31 # Win
197 .reg 01;31 # Win
198 .app 01;31 # OSX
199
200 #############################################################################
201 ### By extension
202
203 # List any file extensions like '.gz' or '.tar' that you would like ls
204 # to colorize below. Put the extension, a space, and the color init string.
205 # (and any comments you want to add after a '#')
206
207 ### Text formats
208
209 # Text that we can edit with a regular editor
210 .txt 32
211 .org 32
212 .md 32
213 .mkd 32
214
215 # Source text
216 .h 32
217 .hpp 32
218 .c 32
219 .C 32
220 .cc 32
221 .cpp 32
222 .cxx 32
223 .objc 32
224 .cl 32
225 .sh 32
226 .bash 32
227 .csh 32
228 .zsh 32
229 .el 32
230 .vim 32
231 .java 32
232 .pl 32
233 .pm 32
234 .py 32
235 .rb 32
236 .hs 32
237 .php 32
238 .htm 32
239 .html 32
240 .shtml 32
241 .erb 32
242 .haml 32
243 .xml 32
244 .rdf 32
245 .css 32
246 .sass 32
247 .scss 32
248 .less 32
249 .js 32
250 .coffee 32
251 .man 32
252 .0 32
253 .1 32
254 .2 32
255 .3 32
256 .4 32
257 .5 32
258 .6 32
259 .7 32
260 .8 32
261 .9 32
262 .l 32
263 .n 32
264 .p 32
265 .pod 32
266 .tex 32
267 .go 32
268 .sql 32
269 .csv 32
270 .sv 32
271 .svh 32
272 .v 32
273 .vh 32
274 .vhd 32
275 .phsi 32
276
277 ### Multimedia formats
278
279 # Image
280 .bmp 33
281 .cgm 33
282 .dl 33
283 .dvi 33
284 .emf 33
285 .eps 33
286 .gif 33
287 .jpeg 33
288 .jpg 33
289 .JPG 33
290 .mng 33
291 .pbm 33
292 .pcx 33
293 .pdf 33
294 .pgm 33
295 .png 33
296 .PNG 33
297 .ppm 33
298 .pps 33
299 .ppsx 33
300 .ps 33
301 .svg 33
302 .svgz 33
303 .tga 33
304 .tif 33
305 .tiff 33
306 .xbm 33
307 .xcf 33
308 .xpm 33
309 .xwd 33
310 .xwd 33
311 .yuv 33
312
313 # Audio
314 .aac 33
315 .au 33
316 .flac 33
317 .m4a 33
318 .mid 33
319 .midi 33
320 .mka 33
321 .mp3 33
322 .mpa 33
323 .mpeg 33
324 .mpg 33
325 .ogg 33
326 .opus 33
327 .ra 33
328 .wav 33
329
330 # Video
331 .anx 33
332 .asf 33
333 .avi 33
334 .axv 33
335 .flc 33
336 .fli 33
337 .flv 33
338 .gl 33
339 .m2v 33
340 .m4v 33
341 .mkv 33
342 .mov 33
343 .MOV 33
344 .mp4 33
345 .mp4v 33
346 .mpeg 33
347 .mpg 33
348 .nuv 33
349 .ogm 33
350 .ogv 33
351 .ogx 33
352 .qt 33
353 .rm 33
354 .rmvb 33
355 .swf 33
356 .vob 33
357 .webm 33
358 .wmv 33
359
360 ### Misc
361
362 # Binary document formats and multimedia source
363 .doc 31
364 .docx 31
365 .rtf 31
366 .odt 31
367 .dot 31
368 .dotx 31
369 .ott 31
370 .xls 31
371 .xlsx 31
372 .ods 31
373 .ots 31
374 .ppt 31
375 .pptx 31
376 .odp 31
377 .otp 31
378 .fla 31
379 .psd 31
380
381 # Archives, compressed
382 .7z 1;35
383 .apk 1;35
384 .arj 1;35
385 .bin 1;35
386 .bz 1;35
387 .bz2 1;35
388 .cab 1;35 # Win
389 .deb 1;35
390 .dmg 1;35 # OSX
391 .gem 1;35
392 .gz 1;35
393 .iso 1;35
394 .jar 1;35
395 .msi 1;35 # Win
396 .rar 1;35
397 .rpm 1;35
398 .tar 1;35
399 .tbz 1;35
400 .tbz2 1;35
401 .tgz 1;35
402 .tx 1;35
403 .war 1;35
404 .xpi 1;35
405 .xz 1;35
406 .z 1;35
407 .Z 1;35
408 .zip 1;35
409
410 # For testing
411 .ANSI-30-black 30
412 .ANSI-01;30-brblack 01;30
413 .ANSI-31-red 31
414 .ANSI-01;31-brred 01;31
415 .ANSI-32-green 32
416 .ANSI-01;32-brgreen 01;32
417 .ANSI-33-yellow 33
418 .ANSI-01;33-bryellow 01;33
419 .ANSI-34-blue 34
420 .ANSI-01;34-brblue 01;34
421 .ANSI-35-magenta 35
422 .ANSI-01;35-brmagenta 01;35
423 .ANSI-36-cyan 36
424 .ANSI-01;36-brcyan 01;36
425 .ANSI-37-white 37
426 .ANSI-01;37-brwhite 01;37
427
428 #############################################################################
429 # Your customizations
430
431 # Unimportant text files
432 # For universal scheme, use brightgreen 01;32
433 # For optimal on light bg (but too prominent on dark bg), use white 01;34
434 .log 01;32
435 *~ 01;32
436 *# 01;32
437 #.log 01;34
438 #*~ 01;34
439 #*# 01;34
440
441 # Unimportant non-text files
442 # For universal scheme, use brightcyan 01;36
443 # For optimal on dark bg (but too prominent on light bg), change to 01;33
444 #.bak 01;36
445 #.BAK 01;36
446 #.old 01;36
447 #.OLD 01;36
448 #.org_archive 01;36
449 #.off 01;36
450 #.OFF 01;36
451 #.dist 01;36
452 #.DIST 01;36
453 #.orig 01;36
454 #.ORIG 01;36
455 #.swp 01;36
456 #.swo 01;36
457 #*,v 01;36
458 .bak 01;33
459 .BAK 01;33
460 .old 01;33
461 .OLD 01;33
462 .org_archive 01;33
463 .off 01;33
464 .OFF 01;33
465 .dist 01;33
466 .DIST 01;33
467 .orig 01;33
468 .ORIG 01;33
469 .swp 01;33
470 .swo 01;33
471 *,v 01;33
472
473 # The brightmagenta (Solarized: purple) color is free for you to use for your
474 # custom file type
475 .gpg 34
476 .gpg 34
477 .pgp 34
478 .asc 34
479 .3des 34
480 .aes 34
481 .enc 34
482 .sqlite 34
483 .dup 37
484 .dcp 31
485 .rpt 32