├── README.mkd ├── dircolors-256 ├── dircolors-256.yml ├── dircolors-8 ├── dircolors-8.yml ├── dircolors.py └── dircolors.tmpl /README.mkd: -------------------------------------------------------------------------------- 1 | To install, just copy the dircolors file to your home directory like this: 2 | 3 | cp dircolors-8 ~/.dircolors-8 4 | cp dircolors-256 ~/.dircolors-256 5 | 6 | In your shell configuration files, add the following: 7 | 8 | dircolors=$HOME/.dircolors-$(tput colors) 9 | 10 | if [[ -f $dircolors ]]; then 11 | eval $(dircolors -b $dircolors) 12 | else 13 | eval $(dircolors) 14 | fi 15 | 16 | If you want to contribute, just fork and edit the dircolors.yml file. 17 | You can generate a new dircolors file like this: 18 | 19 | python dircolors.py -------------------------------------------------------------------------------- /dircolors-256: -------------------------------------------------------------------------------- 1 | # Configuration file for dircolors, a utility to help you set the 2 | # LS_COLORS environment variable used by GNU ls with the --color option. 3 | # Copyright (C) 1996, 1999-2011 Free Software Foundation, Inc. 4 | # Copying and distribution of this file, with or without modification, 5 | # are permitted provided the copyright notice and this notice are preserved. 6 | # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the 7 | # slackware version of dircolors) are recognized but ignored. 8 | # Below, there should be one TERM entry for each termtype that is colorizable 9 | 10 | TERM Eterm 11 | TERM ansi 12 | TERM color-xterm 13 | TERM con132x25 14 | TERM con132x30 15 | TERM con132x43 16 | TERM con132x60 17 | TERM con80x25 18 | TERM con80x28 19 | TERM con80x30 20 | TERM con80x43 21 | TERM con80x50 22 | TERM con80x60 23 | TERM cons25 24 | TERM console 25 | TERM cygwin 26 | TERM dtterm 27 | TERM eterm-color 28 | TERM gnome 29 | TERM gnome-256color 30 | TERM jfbterm 31 | TERM konsole 32 | TERM kterm 33 | TERM linux 34 | TERM linux-c 35 | TERM mach-color 36 | TERM mlterm 37 | TERM putty 38 | TERM rxvt 39 | TERM rxvt-256color 40 | TERM rxvt-cygwin 41 | TERM rxvt-cygwin-native 42 | TERM rxvt-unicode 43 | TERM rxvt-unicode-256color 44 | TERM rxvt-unicode256 45 | TERM screen 46 | TERM screen-256color 47 | TERM screen-256color-bce 48 | TERM screen-bce 49 | TERM screen-w 50 | TERM screen.rxvt 51 | TERM screen.linux 52 | TERM terminator 53 | TERM vt100 54 | TERM xterm 55 | TERM xterm-16color 56 | TERM xterm-256color 57 | TERM xterm-88color 58 | TERM xterm-color 59 | TERM xterm-debian 60 | 61 | # Below are the color init strings for the basic file types. A color init 62 | # string consists of one or more of the following numeric codes: 63 | # Attribute codes: 64 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed 65 | # Text color codes: 66 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white 67 | # Background color codes: 68 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white 69 | #NORMAL 00 # no color code at all 70 | #FILE 00 # regular file: use no color at all 71 | RESET 0 # reset to "normal" color 72 | DIR 01;34 # directory 73 | LINK 01;36 # symbolic link. (If you set this to 'target' instead of a 74 | # numerical value, the color is as for the file pointed to.) 75 | MULTIHARDLINK 00 # regular file with more than one link 76 | FIFO 40;33 # pipe 77 | SOCK 01;35 # socket 78 | DOOR 01;35 # door 79 | BLK 40;33;01 # block device driver 80 | CHR 40;33;01 # character device driver 81 | ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file 82 | SETUID 37;41 # file that is setuid (u+s) 83 | SETGID 30;43 # file that is setgid (g+s) 84 | CAPABILITY 30;41 # file with capability 85 | STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) 86 | OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky 87 | STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable 88 | EXEC 01;32 # This is for files with execute permission: 89 | 90 | .m3u8 38;5;28 91 | .m3u 38;5;28 92 | .pls 38;5;28 93 | .cue 38;5;28 94 | .xspf 38;5;28 95 | .cfg 38;5;34 96 | .conf 38;5;34 97 | .ini 38;5;34 98 | .yml 38;5;34 99 | .flv 38;5;40 100 | .swf 38;5;40 101 | .swfl 38;5;40 102 | .avi 38;5;41 103 | .mpeg 38;5;42 104 | .mpg 38;5;42 105 | .mpe 38;5;42 106 | .mp4 38;5;42 107 | .asf 38;5;43 108 | .asx 38;5;43 109 | .wm 38;5;43 110 | .wmv 38;5;43 111 | .wmx 38;5;43 112 | .wvx 38;5;43 113 | .webm 38;5;44 114 | .mpv 38;5;45 115 | .mkv 38;5;45 116 | .qt 38;5;46 117 | .mov 38;5;46 118 | .ogv 38;5;47 119 | .3gp 38;5;48 120 | .3g2 38;5;48 121 | .ts 38;5;49 122 | .vob 38;5;49 123 | .7z 38;5;58 124 | .zip 38;5;59 125 | .gz 38;5;60 126 | .z 38;5;60 127 | .tar 38;5;61 128 | .bz2 38;5;62 129 | .tar..bz2 38;5;62 130 | .tb2 38;5;62 131 | .rar 38;5;63 132 | .gz 38;5;64 133 | .tar..gz 38;5;64 134 | .tgz 38;5;64 135 | .ace 38;5;65 136 | .a 38;5;66 137 | .arj 38;5;67 138 | .jar 38;5;68 139 | .rpm 38;5;68 140 | .cab 38;5;68 141 | .deb 38;5;68 142 | .udeb 38;5;68 143 | .apk 38;5;68 144 | .xpi 38;5;68 145 | .egg 38;5;68 146 | .pkg 38;5;68 147 | .jad 38;5;68 148 | .gem 38;5;68 149 | .msi 38;5;68 150 | .iso 38;5;70 151 | .dmg 38;5;70 152 | .vcd 38;5;70 153 | .nrg 38;5;70 154 | .hqx 38;5;71 155 | .sit 38;5;72 156 | .sitx 38;5;72 157 | .lha 38;5;73 158 | .lzh 38;5;73 159 | .lzx 38;5;73 160 | .zshrc 38;5;76 161 | .zprofile 38;5;76 162 | .zshenv 38;5;76 163 | .zlogout 38;5;76 164 | .bashrc 38;5;77 165 | .bash_profile 38;5;77 166 | .bash_logout 38;5;77 167 | .profile 38;5;77 168 | .dircolors 38;5;78 169 | .vimrc 38;5;82 170 | .gvimrc 38;5;82 171 | .exrc 38;5;82 172 | .sqlite 38;5;99 173 | .db 38;5;99 174 | .mdf 38;5;99 175 | .ldf 38;5;99 176 | .mdb 38;5;99 177 | .odb 38;5;99 178 | .jpeg 38;5;101 179 | .jpg 38;5;101 180 | .jpe 38;5;101 181 | .gif 38;5;102 182 | .png 38;5;103 183 | .pnm 38;5;104 184 | .pbm 38;5;104 185 | .pgm 38;5;104 186 | .ppm 38;5;104 187 | .svg 38;5;105 188 | .svgz 38;5;105 189 | .pcx 38;5;106 190 | .tiff 38;5;107 191 | .tif 38;5;107 192 | .ico 38;5;108 193 | .icns 38;5;108 194 | .bmp 38;5;109 195 | .psd 38;5;110 196 | .ai 38;5;110 197 | .xbm 38;5;111 198 | .xpm 38;5;111 199 | .epub 38;5;127 200 | .mobi 38;5;127 201 | .lit 38;5;127 202 | .djvu 38;5;127 203 | .djv 38;5;127 204 | .cbr 38;5;132 205 | .cbz 38;5;132 206 | .pdf 38;5;134 207 | .chm 38;5;134 208 | .dvi 38;5;137 209 | .xhtml 38;5;142 210 | .xht 38;5;142 211 | .xml 38;5;142 212 | .xsl 38;5;142 213 | .xsd 38;5;142 214 | .mml 38;5;143 215 | .mnl 38;5;143 216 | .rdf 38;5;144 217 | .xul 38;5;144 218 | .rss 38;5;145 219 | .atom 38;5;145 220 | .x3dv 38;5;146 221 | .x3d 38;5;146 222 | .kml 38;5;147 223 | .kmz 38;5;147 224 | .jnlp 38;5;148 225 | .csv 38;5;149 226 | .tsv 38;5;149 227 | .psv 38;5;149 228 | .vcs 38;5;150 229 | .vcf 38;5;150 230 | .msg 38;5;150 231 | .eml 38;5;150 232 | .ics 38;5;150 233 | .icz 38;5;150 234 | .txt 38;5;151 235 | .log 38;5;151 236 | .nfo 38;5;151 237 | .sig 38;5;151 238 | .manifest 38;5;151 239 | .nzb 38;5;155 240 | .torrent 38;5;155 241 | .aac 38;5;160 242 | .mpga 38;5;161 243 | .mpega 38;5;161 244 | .mp2 38;5;161 245 | .mp3 38;5;161 246 | .m4a 38;5;161 247 | .m4b 38;5;161 248 | .m4r 38;5;161 249 | .wav 38;5;162 250 | .wma 38;5;162 251 | .oga 38;5;163 252 | .ogg 38;5;163 253 | .spx 38;5;163 254 | .flac 38;5;164 255 | .ape 38;5;164 256 | .apl 38;5;164 257 | .mpc 38;5;164 258 | .aif 38;5;165 259 | .aiff 38;5;165 260 | .aifc 38;5;165 261 | .mid 38;5;166 262 | .midi 38;5;166 263 | .kar 38;5;166 264 | .ra 38;5;167 265 | .rm 38;5;167 266 | .ram 38;5;167 267 | .pfa 38;5;169 268 | .pfb 38;5;169 269 | .gsf 38;5;169 270 | .pcf 38;5;169 271 | .otf 38;5;169 272 | .ttf 38;5;169 273 | .fon 38;5;169 274 | .dfont 38;5;169 275 | .ps 38;5;170 276 | .eps 38;5;170 277 | .epsi 38;5;170 278 | .epsf 38;5;170 279 | .eps2 38;5;170 280 | .eps3 38;5;170 281 | .gpg 38;5;172 282 | .pgp 38;5;172 283 | .asc 38;5;172 284 | .pem 38;5;172 285 | .crt 38;5;172 286 | .csr 38;5;172 287 | .sdc 38;5;173 288 | .sxc 38;5;173 289 | .stc 38;5;173 290 | .ods 38;5;173 291 | .ots 38;5;173 292 | .xls 38;5;173 293 | .xlb 38;5;173 294 | .xlt 38;5;173 295 | .xlsx 38;5;173 296 | .xlam 38;5;173 297 | .xlsb 38;5;173 298 | .xlsm 38;5;173 299 | .xltm 38;5;173 300 | .xlsx 38;5;173 301 | .xltx 38;5;173 302 | .xltx 38;5;173 303 | .gnumeric 38;5;173 304 | .ksp 38;5;173 305 | .sdf 38;5;174 306 | .sxm 38;5;174 307 | .odf 38;5;174 308 | .sdw 38;5;176 309 | .sgl 38;5;176 310 | .sxw 38;5;176 311 | .sxg 38;5;176 312 | .stw 38;5;176 313 | .odt 38;5;176 314 | .odm 38;5;176 315 | .ott 38;5;176 316 | .oth 38;5;176 317 | .docm 38;5;176 318 | .dotm 38;5;176 319 | .doc 38;5;176 320 | .dot 38;5;176 321 | .docx 38;5;176 322 | .dotx 38;5;176 323 | .rtx 38;5;176 324 | .rtf 38;5;176 325 | .abw 38;5;176 326 | .pages 38;5;176 327 | .wpd 38;5;176 328 | .kwd 38;5;176 329 | .kwt 38;5;176 330 | .sds 38;5;177 331 | .odc 38;5;177 332 | .chrt 38;5;177 333 | .sda 38;5;178 334 | .sxd 38;5;178 335 | .std 38;5;178 336 | .odg 38;5;178 337 | .otg 38;5;178 338 | .odi 38;5;178 339 | .cdr 38;5;178 340 | .pat 38;5;178 341 | .cdt 38;5;178 342 | .cpt 38;5;178 343 | .vsd 38;5;178 344 | .kil 38;5;178 345 | .sdd 38;5;180 346 | .sxi 38;5;180 347 | .sti 38;5;180 348 | .odp 38;5;180 349 | .otp 38;5;180 350 | .ppt 38;5;180 351 | .pps 38;5;180 352 | .ppam 38;5;180 353 | .pptm 38;5;180 354 | .sldm 38;5;180 355 | .ppsm 38;5;180 356 | .potm 38;5;180 357 | .pptx 38;5;180 358 | .sldx 38;5;180 359 | .ppsx 38;5;180 360 | .potx 38;5;180 361 | .key 38;5;180 362 | .wps 38;5;180 363 | .kpr 38;5;180 364 | .kpt 38;5;180 365 | .rst 38;5;182 366 | .textile 38;5;183 367 | .markdown 38;5;184 368 | .md 38;5;184 369 | .mkd 38;5;184 370 | .texinfo 38;5;185 371 | .texi 38;5;185 372 | .info 38;5;185 373 | .t 38;5;186 374 | .tr 38;5;186 375 | .ronn 38;5;186 376 | .roff 38;5;186 377 | .man 38;5;186 378 | .me 38;5;186 379 | .ms 38;5;186 380 | .rb 38;5;197 381 | .gemspec 38;5;197 382 | .c++ 38;5;198 383 | .cpp 38;5;198 384 | .cxx 38;5;198 385 | .cc 38;5;198 386 | .c 38;5;198 387 | .h++ 38;5;199 388 | .hpp 38;5;199 389 | .hxx 38;5;199 390 | .hh 38;5;199 391 | .h 38;5;199 392 | .scpt 38;5;200 393 | .applescript 38;5;200 394 | .csproj 38;5;201 395 | .vbproj 38;5;201 396 | .sln 38;5;201 397 | .cl 38;5;202 398 | .el 38;5;202 399 | .cs 38;5;203 400 | .js 38;5;204 401 | .json 38;5;204 402 | .coffee 38;5;204 403 | .es 38;5;204 404 | .pl 38;5;205 405 | .pm 38;5;205 406 | .pod 38;5;205 407 | .vb 38;5;206 408 | .vbs 38;5;206 409 | .boo 38;5;207 410 | .diff 38;5;208 411 | .patch 38;5;208 412 | .html 38;5;209 413 | .htm 38;5;209 414 | .shtml 38;5;209 415 | .pht 38;5;210 416 | .php 38;5;210 417 | .phps 38;5;210 418 | .php3 38;5;210 419 | .php3p 38;5;210 420 | .php4 38;5;210 421 | .php5 38;5;210 422 | .phtml 38;5;210 423 | .asp 38;5;211 424 | .aspx 38;5;211 425 | .ascx 38;5;211 426 | .asmx 38;5;211 427 | .ashx 38;5;211 428 | .haml 38;5;212 429 | .erb 38;5;212 430 | .rhtml 38;5;212 431 | .py 38;5;213 432 | .tac 38;5;213 433 | .wsgi 38;5;213 434 | .lua 38;5;213 435 | .hs 38;5;214 436 | .lhs 38;5;214 437 | .jsp 38;5;215 438 | .sh 38;5;216 439 | .bash 38;5;216 440 | .zsh 38;5;216 441 | .csh 38;5;216 442 | .tcsh 38;5;216 443 | .ksh 38;5;216 444 | .cmd 38;5;216 445 | .bat 38;5;216 446 | .awk 38;5;216 447 | .sed 38;5;216 448 | .com 38;5;216 449 | .command 38;5;216 450 | .java 38;5;217 451 | .egg-info 38;5;218 452 | .pth 38;5;218 453 | .tex 38;5;219 454 | .ltx 38;5;219 455 | .sty 38;5;219 456 | .cls 38;5;219 457 | .tfm 38;5;219 458 | .bib 38;5;219 459 | .latex 38;5;219 460 | .lyx 38;5;220 461 | .tm 38;5;220 462 | .vim 38;5;221 463 | .css 38;5;222 464 | .scss 38;5;222 465 | .sass 38;5;222 466 | .less 38;5;222 467 | .sql 38;5;223 468 | .d 38;5;224 469 | .r 38;5;224 470 | .tcl 38;5;225 471 | .tk 38;5;225 472 | .go 38;5;226 473 | .erl 38;5;227 474 | .ml 38;5;227 475 | .scala 38;5;227 476 | .asm 38;5;228 477 | .p 38;5;229 478 | .pas 38;5;229 479 | .gitignore 38;5;238 480 | .hgignore 38;5;238 481 | .bzrignore 38;5;238 482 | .hg 38;5;239 483 | .bzr 38;5;239 484 | .svn 38;5;239 485 | .git 38;5;239 486 | .cvs 38;5;239 487 | .swp 38;5;240 488 | .swo 38;5;240 489 | .bak 38;5;240 490 | .old 38;5;240 491 | .sik 38;5;240 492 | .tmp 38;5;240 493 | .pkl 38;5;242 494 | .dat 38;5;242 495 | .ser 38;5;242 496 | .md5 38;5;244 497 | .sfv 38;5;244 498 | .sha1 38;5;244 499 | .st5 38;5;244 500 | .ffp 38;5;244 501 | .par 38;5;244 502 | .pyc 38;5;247 503 | .pyo 38;5;247 504 | .o 38;5;247 505 | .class 38;5;247 506 | .zwc 38;5;247 507 | .dll 38;5;247 508 | .exe 38;5;247 509 | .app 38;5;247 510 | 511 | # vim:set ft=dircolors: 512 | -------------------------------------------------------------------------------- /dircolors-256.yml: -------------------------------------------------------------------------------- 1 | format: 38;5;{n} 2 | 3 | extensions: 4 | 5 | 16: [] 6 | 17: [] 7 | 18: [] 8 | 19: [] 9 | 20: [] 10 | 21: [] 11 | 22: [] 12 | 23: [] 13 | 24: [] 14 | 25: [] 15 | 26: [] 16 | 27: [] 17 | 28: [.m3u8, .m3u, .pls, .cue, .xspf] 18 | 29: [] 19 | 30: [] 20 | 31: [] 21 | 32: [] 22 | 33: [] 23 | 34: [.cfg, .conf, .ini, .yml] 24 | 35: [] 25 | 36: [] 26 | 37: [] 27 | 38: [] 28 | 39: [] 29 | 40: [.flv, .swf, .swfl] 30 | 41: [.avi] 31 | 42: [.mpeg, .mpg, .mpe, .mp4] 32 | 43: [.asf, .asx, .wm, .wmv, .wmx, .wvx] 33 | 44: [.webm] 34 | 45: [.mpv, .mkv] 35 | 46: [.qt, .mov] 36 | 47: [.ogv] 37 | 48: [.3gp, .3g2] 38 | 49: [.ts, .vob] 39 | 50: [] 40 | 51: [] 41 | 52: [] 42 | 53: [] 43 | 54: [] 44 | 55: [] 45 | 56: [] 46 | 57: [] 47 | 58: [.7z] 48 | 59: [.zip] 49 | 60: [.gz, .z] 50 | 61: [.tar] 51 | 62: [.bz2, .tar..bz2, .tb2] 52 | 63: [.rar] 53 | 64: [.gz, .tar..gz, .tgz] 54 | 65: [.ace] 55 | 66: [.a] 56 | 67: [.arj] 57 | 68: [.jar, .rpm, .cab, .deb, .udeb, .apk, .xpi, .egg, .pkg, .jad, .gem, .msi] 58 | 69: [] 59 | 70: [.iso, .dmg, .vcd, .nrg] 60 | 71: [.hqx] 61 | 72: [.sit, .sitx] 62 | 73: [.lha, .lzh, .lzx] 63 | 74: [] 64 | 75: [] 65 | 76: [.zshrc, .zprofile, .zshenv, .zlogout] 66 | 77: [.bashrc, .bash_profile, .bash_logout, .profile] 67 | 78: [.dircolors] 68 | 79: [] 69 | 80: [] 70 | 81: [] 71 | 82: [.vimrc, .gvimrc, .exrc] 72 | 83: [] 73 | 84: [] 74 | 85: [] 75 | 86: [] 76 | 87: [] 77 | 88: [] 78 | 89: [] 79 | 90: [] 80 | 91: [] 81 | 92: [] 82 | 93: [] 83 | 94: [] 84 | 95: [] 85 | 96: [] 86 | 97: [] 87 | 98: [] 88 | 99: [.sqlite, .db, .mdf, .ldf, .mdb, .odb] 89 | 100: [] 90 | 101: [.jpeg, .jpg, .jpe] 91 | 102: [.gif] 92 | 103: [.png] 93 | 104: [.pnm, .pbm, .pgm, .ppm] 94 | 105: [.svg, .svgz] 95 | 106: [.pcx] 96 | 107: [.tiff, .tif] 97 | 108: [.ico, .icns] 98 | 109: [.bmp] 99 | 110: [.psd, .ai] 100 | 111: [.xbm, .xpm] 101 | 112: [] 102 | 113: [] 103 | 114: [] 104 | 115: [] 105 | 116: [] 106 | 117: [] 107 | 118: [] 108 | 119: [] 109 | 120: [] 110 | 121: [] 111 | 122: [] 112 | 123: [] 113 | 124: [] 114 | 125: [] 115 | 126: [] 116 | 127: [.epub, .mobi, .lit, .djvu, .djv] 117 | 128: [] 118 | 129: [] 119 | 130: [] 120 | 131: [] 121 | 132: [.cbr, .cbz] 122 | 133: [] 123 | 134: [.pdf, .chm] 124 | 135: [] 125 | 136: [] 126 | 137: [.dvi] 127 | 138: [] 128 | 139: [] 129 | 140: [] 130 | 141: [] 131 | 142: [.xhtml, .xht, .xml, .xsl, .xsd] 132 | 143: [.mml, .mnl] 133 | 144: [.rdf, .xul] 134 | 145: [.rss, .atom] 135 | 146: [.x3dv, .x3d] 136 | 147: [.kml, .kmz] 137 | 148: [.jnlp] 138 | 149: [.csv, .tsv, .psv] 139 | 150: [.vcs, .vcf, .msg, .eml, .ics, .icz] 140 | 151: [.txt, .log, .nfo, .sig, .manifest] 141 | 152: [] 142 | 153: [] 143 | 154: [] 144 | 155: [.nzb, .torrent] 145 | 156: [] 146 | 157: [] 147 | 158: [] 148 | 159: [] 149 | 160: [.aac] 150 | 161: [.mpga, .mpega, .mp2, .mp3, .m4a, .m4b, .m4r] 151 | 162: [.wav, .wma] 152 | 163: [.oga, .ogg, .spx] 153 | 164: [.flac, .ape, .apl, .mpc] 154 | 165: [.aif, .aiff, .aifc] 155 | 166: [.mid, .midi, .kar] 156 | 167: [.ra, .rm, .ram] 157 | 168: [] 158 | 169: [.pfa, .pfb, .gsf, .pcf, .otf, .ttf, .fon, .dfont] 159 | 170: [.ps, .eps, .epsi, .epsf, .eps2, .eps3] 160 | 171: [] 161 | 172: [.gpg, .pgp, .asc, .pem, .crt, .csr] 162 | 173: [.sdc, .sxc, .stc, .ods, .ots, .xls, .xlb, .xlt, .xlsx, .xlam, .xlsb, .xlsm, .xltm, .xlsx, .xltx, .xltx, .gnumeric, .ksp] 163 | 174: [.sdf, .sxm, .odf] 164 | 175: [] 165 | 176: [.sdw, .sgl, .sxw, .sxg, .stw, .odt, .odm, .ott, .oth, .docm, .dotm, .doc, .dot, .docx, .dotx, .rtx, .rtf, .abw, .pages, .wpd, .kwd, .kwt] 166 | 177: [.sds, .odc, .chrt] 167 | 178: [.sda, .sxd, .std, .odg, .otg, .odi, .cdr, .pat, .cdt, .cpt, .vsd, .kil] 168 | 179: [] 169 | 180: [.sdd, .sxi, .sti, .odp, .otp, .ppt, .pps, .ppam, .pptm, .sldm, .ppsm, .potm, .pptx, .sldx, .ppsx, .potx, .key, .wps, .kpr, .kpt] 170 | 181: [] 171 | 182: [.rst] 172 | 183: [.textile] 173 | 184: [.markdown, .md, .mkd] 174 | 185: [.texinfo, .texi, .info] 175 | 186: [.t, .tr, .ronn, .roff, .man, .me, .ms] 176 | 187: [] 177 | 188: [] 178 | 189: [] 179 | 190: [] 180 | 191: [] 181 | 192: [] 182 | 193: [] 183 | 194: [] 184 | 195: [] 185 | 196: [] 186 | 197: [.rb, .gemspec] 187 | 198: [.c++, .cpp, .cxx, .cc, .c] 188 | 199: [.h++, .hpp, .hxx, .hh, .h] 189 | 200: [.scpt, .applescript] 190 | 201: [.csproj, .vbproj, .sln] 191 | 202: [.cl, .el] 192 | 203: [.cs] 193 | 204: [.js, .json, .coffee, .es] 194 | 205: [.pl, .pm, .pod] 195 | 206: [.vb, .vbs] 196 | 207: [.boo] 197 | 208: [.diff, .patch] 198 | 209: [.html, .htm, .shtml] 199 | 210: [.pht, .php, .phps, .php3, .php3p, .php4, .php5, .phtml] 200 | 211: [.asp, .aspx, .ascx, .asmx, .ashx] 201 | 212: [.haml, .erb, .rhtml] 202 | 213: [.py, .tac, .wsgi, .lua] 203 | 214: [.hs, .lhs] 204 | 215: [.jsp] 205 | 216: [.sh, .bash, .zsh, .csh, .tcsh, .ksh, .cmd, .bat, .awk, .sed, .com, .command] 206 | 217: [.java] 207 | 218: [.egg-info, .pth] 208 | 219: [.tex, .ltx, .sty, .cls, .tfm, .bib, .latex] 209 | 220: [.lyx, .tm] 210 | 221: [.vim] 211 | 222: [.css, .scss, .sass, .less] 212 | 223: [.sql] 213 | 224: [.d, .r] 214 | 225: [.tcl, .tk] 215 | 226: [.go] 216 | 227: [.erl, .ml, .scala] 217 | 228: [.asm] 218 | 229: [.p, .pas] 219 | 230: [] 220 | 232: [] 221 | 233: [] 222 | 234: [] 223 | 235: [] 224 | 236: [] 225 | 237: [] 226 | 238: [.gitignore, .hgignore, .bzrignore] 227 | 239: [.hg, .bzr, .svn, .git, .cvs] 228 | 240: [.swp, .swo, .bak, .old, .sik, .tmp] 229 | 241: [] 230 | 242: [.pkl, .dat, .ser] 231 | 243: [] 232 | 244: [.md5, .sfv, .sha1, .st5, .ffp, .par] 233 | 245: [] 234 | 246: [] 235 | 247: [.pyc, .pyo, .o, .class, .zwc, .dll, .exe, .app] 236 | 248: [] 237 | 249: [] 238 | 250: [] 239 | 251: [] 240 | 252: [] 241 | 253: [] 242 | 254: [] 243 | 255: [] 244 | -------------------------------------------------------------------------------- /dircolors-8: -------------------------------------------------------------------------------- 1 | # Configuration file for dircolors, a utility to help you set the 2 | # LS_COLORS environment variable used by GNU ls with the --color option. 3 | # Copyright (C) 1996, 1999-2011 Free Software Foundation, Inc. 4 | # Copying and distribution of this file, with or without modification, 5 | # are permitted provided the copyright notice and this notice are preserved. 6 | # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the 7 | # slackware version of dircolors) are recognized but ignored. 8 | # Below, there should be one TERM entry for each termtype that is colorizable 9 | 10 | TERM Eterm 11 | TERM ansi 12 | TERM color-xterm 13 | TERM con132x25 14 | TERM con132x30 15 | TERM con132x43 16 | TERM con132x60 17 | TERM con80x25 18 | TERM con80x28 19 | TERM con80x30 20 | TERM con80x43 21 | TERM con80x50 22 | TERM con80x60 23 | TERM cons25 24 | TERM console 25 | TERM cygwin 26 | TERM dtterm 27 | TERM eterm-color 28 | TERM gnome 29 | TERM gnome-256color 30 | TERM jfbterm 31 | TERM konsole 32 | TERM kterm 33 | TERM linux 34 | TERM linux-c 35 | TERM mach-color 36 | TERM mlterm 37 | TERM putty 38 | TERM rxvt 39 | TERM rxvt-256color 40 | TERM rxvt-cygwin 41 | TERM rxvt-cygwin-native 42 | TERM rxvt-unicode 43 | TERM rxvt-unicode-256color 44 | TERM rxvt-unicode256 45 | TERM screen 46 | TERM screen-256color 47 | TERM screen-256color-bce 48 | TERM screen-bce 49 | TERM screen-w 50 | TERM screen.rxvt 51 | TERM screen.linux 52 | TERM terminator 53 | TERM vt100 54 | TERM xterm 55 | TERM xterm-16color 56 | TERM xterm-256color 57 | TERM xterm-88color 58 | TERM xterm-color 59 | TERM xterm-debian 60 | 61 | # Below are the color init strings for the basic file types. A color init 62 | # string consists of one or more of the following numeric codes: 63 | # Attribute codes: 64 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed 65 | # Text color codes: 66 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white 67 | # Background color codes: 68 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white 69 | #NORMAL 00 # no color code at all 70 | #FILE 00 # regular file: use no color at all 71 | RESET 0 # reset to "normal" color 72 | DIR 01;34 # directory 73 | LINK 01;36 # symbolic link. (If you set this to 'target' instead of a 74 | # numerical value, the color is as for the file pointed to.) 75 | MULTIHARDLINK 00 # regular file with more than one link 76 | FIFO 40;33 # pipe 77 | SOCK 01;35 # socket 78 | DOOR 01;35 # door 79 | BLK 40;33;01 # block device driver 80 | CHR 40;33;01 # character device driver 81 | ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file 82 | SETUID 37;41 # file that is setuid (u+s) 83 | SETGID 30;43 # file that is setgid (g+s) 84 | CAPABILITY 30;41 # file with capability 85 | STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) 86 | OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky 87 | STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable 88 | EXEC 01;32 # This is for files with execute permission: 89 | 90 | .7z 00;31 91 | .a 00;31 92 | .cab 00;31 93 | .arj 00;31 94 | .deb 00;31 95 | .egg 00;31 96 | .pkg 00;31 97 | .bz2 00;31 98 | .cbr 00;31 99 | .cbz 00;31 100 | .chm 00;31 101 | .dmg 00;31 102 | .gz 00;31 103 | .iso 00;31 104 | .jad 00;31 105 | .jar 00;31 106 | .nrg 00;31 107 | .pdf 00;31 108 | .rar 00;31 109 | .vcd 00;31 110 | .t 00;31 111 | .tar 00;31 112 | .tgz 00;31 113 | .xz 00;31 114 | .z 00;31 115 | .zip 00;31 116 | .ai 00;32 117 | .bmp 00;32 118 | .cdr 00;32 119 | .eps 00;32 120 | .gif 00;32 121 | .icns 00;32 122 | .ico 00;32 123 | .jpeg 00;32 124 | .jpg 00;32 125 | .pbm 00;32 126 | .pgm 00;32 127 | .png 00;32 128 | .pnm 00;32 129 | .ppm 00;32 130 | .ps 00;32 131 | .psd 00;32 132 | .raw 00;32 133 | .svg 00;32 134 | .tif 00;32 135 | .tiff 00;32 136 | .xpm 00;32 137 | .applescript 00;33 138 | .asm 00;33 139 | .awk 00;33 140 | .bash 00;33 141 | .bat 00;33 142 | .c 00;33 143 | .cl 00;33 144 | .cmd 00;33 145 | .coffee 00;33 146 | .cpp 00;33 147 | .cs 00;33 148 | .diff 00;33 149 | .el 00;33 150 | .go 00;33 151 | .h 00;33 152 | .hs 00;33 153 | .java 00;33 154 | .js 00;33 155 | .jsp 00;33 156 | .lua 00;33 157 | .m 00;33 158 | .patch 00;33 159 | .pl 00;33 160 | .pm 00;33 161 | .pod 00;33 162 | .ps 00;33 163 | .py 00;33 164 | .r 00;33 165 | .rb 00;33 166 | .sed 00;33 167 | .sh 00;33 168 | .sql 00;33 169 | .sty 00;33 170 | .tac 00;33 171 | .tcl 00;33 172 | .tex 00;33 173 | .tfm 00;33 174 | .vb 00;33 175 | .vim 00;33 176 | .wsgi 00;33 177 | .zsh 00;33 178 | .ascx 00;34 179 | .ashx 00;34 180 | .aspx 00;34 181 | .css 00;34 182 | .erb 00;34 183 | .htm 00;34 184 | .html 00;34 185 | .php 00;34 186 | .sass 00;34 187 | .scss 00;34 188 | .less 00;34 189 | .rst 00;34 190 | .textile 00;34 191 | .markdown 00;34 192 | .md 00;34 193 | .mkd 00;34 194 | .genshi 00;34 195 | .jinja 00;34 196 | .mako 00;34 197 | .django 00;34 198 | .haml 00;34 199 | .cfg 00;35 200 | .chm 00;35 201 | .conf 00;35 202 | .csv 00;35 203 | .doc 00;35 204 | .docx 00;35 205 | .dvi 00;35 206 | .epub 00;35 207 | .ini 00;35 208 | .json 00;35 209 | .key 00;35 210 | .log 00;35 211 | .mobi 00;35 212 | .msg 00;35 213 | .nfo 00;35 214 | .odf 00;35 215 | .pages 00;35 216 | .pdf 00;35 217 | .pps 00;35 218 | .ppt 00;35 219 | .pptx 00;35 220 | .rtf 00;35 221 | .txt 00;35 222 | .vcf 00;35 223 | .wpd 00;35 224 | .wps 00;35 225 | .xls 00;35 226 | .xlsx 00;35 227 | .xml 00;35 228 | .yml 00;35 229 | .3g2 00;36 230 | .3gp 00;36 231 | .aac 00;36 232 | .aif 00;36 233 | .asf 00;36 234 | .asx 00;36 235 | .avi 00;36 236 | .cue 00;36 237 | .dat 00;36 238 | .fcm 00;36 239 | .flac 00;36 240 | .flv 00;36 241 | .iff 00;36 242 | .m3u 00;36 243 | .m4a 00;36 244 | .mkv 00;36 245 | .mod 00;36 246 | .mov 00;36 247 | .mp3 00;36 248 | .mp4 00;36 249 | .mpa 00;36 250 | .mpeg 00;36 251 | .mpg 00;36 252 | .ogv 00;36 253 | .ra 00;36 254 | .rm 00;36 255 | .s3m 00;36 256 | .sid 00;36 257 | .spl 00;36 258 | .spx 00;36 259 | .swf 00;36 260 | .ts 00;36 261 | .vob 00;36 262 | .wav 00;36 263 | .wma 00;36 264 | .wmv 00;36 265 | 266 | # vim:set ft=dircolors: 267 | -------------------------------------------------------------------------------- /dircolors-8.yml: -------------------------------------------------------------------------------- 1 | format: 00;3{n} 2 | 3 | extensions: 4 | 5 | 1: # RED - Archives 6 | - .7z 7 | - .a 8 | - .cab 9 | - .arj 10 | - .deb 11 | - .egg 12 | - .pkg 13 | - .bz2 14 | - .cbr 15 | - .cbz 16 | - .chm 17 | - .dmg 18 | - .gz 19 | - .iso 20 | - .jad 21 | - .jar 22 | - .nrg 23 | - .pdf 24 | - .rar 25 | - .vcd 26 | - .t 27 | - .tar 28 | - .tgz 29 | - .xz 30 | - .z 31 | - .zip 32 | 33 | 2: # GREEN - Images 34 | - .ai 35 | - .bmp 36 | - .cdr 37 | - .eps 38 | - .gif 39 | - .icns 40 | - .ico 41 | - .jpeg 42 | - .jpg 43 | - .pbm 44 | - .pgm 45 | - .png 46 | - .pnm 47 | - .ppm 48 | - .ps 49 | - .psd 50 | - .raw 51 | - .svg 52 | - .tif 53 | - .tiff 54 | - .xpm 55 | 56 | 3: # YELLOW - Code 57 | - .applescript 58 | - .asm 59 | - .awk 60 | - .bash 61 | - .bat 62 | - .c 63 | - .cl 64 | - .cmd 65 | - .coffee 66 | - .cpp 67 | - .cs 68 | - .diff 69 | - .el 70 | - .go 71 | - .h 72 | - .hs 73 | - .java 74 | - .js 75 | - .jsp 76 | - .lua 77 | - .m 78 | - .patch 79 | - .pl 80 | - .pm 81 | - .pod 82 | - .ps 83 | - .py 84 | - .r 85 | - .rb 86 | - .sed 87 | - .sh 88 | - .sql 89 | - .sty 90 | - .tac 91 | - .tcl 92 | - .tex 93 | - .tfm 94 | - .vb 95 | - .vim 96 | - .wsgi 97 | - .zsh 98 | 99 | 4: # BLUE - Markup 100 | - .ascx 101 | - .ashx 102 | - .aspx 103 | - .css 104 | - .erb 105 | - .htm 106 | - .html 107 | - .php 108 | - .sass 109 | - .scss 110 | - .less 111 | - .rst 112 | - .textile 113 | - .markdown 114 | - .md 115 | - .mkd 116 | - .genshi 117 | - .jinja 118 | - .mako 119 | - .django 120 | - .haml 121 | 122 | 5: # MAGENTA - Documents 123 | - .cfg 124 | - .chm 125 | - .conf 126 | - .csv 127 | - .doc 128 | - .docx 129 | - .dvi 130 | - .epub 131 | - .ini 132 | - .json 133 | - .key 134 | - .log 135 | - .mobi 136 | - .msg 137 | - .nfo 138 | - .odf 139 | - .pages 140 | - .pdf 141 | - .pps 142 | - .ppt 143 | - .pptx 144 | - .rtf 145 | - .txt 146 | - .vcf 147 | - .wpd 148 | - .wps 149 | - .xls 150 | - .xlsx 151 | - .xml 152 | - .yml 153 | 154 | 6: # CYAN - Media 155 | - .3g2 156 | - .3gp 157 | - .aac 158 | - .aif 159 | - .asf 160 | - .asx 161 | - .avi 162 | - .cue 163 | - .dat 164 | - .fcm 165 | - .flac 166 | - .flv 167 | - .iff 168 | - .m3u 169 | - .m4a 170 | - .mkv 171 | - .mod 172 | - .mov 173 | - .mp3 174 | - .mp4 175 | - .mpa 176 | - .mpeg 177 | - .mpg 178 | - .ogv 179 | - .ra 180 | - .rm 181 | - .s3m 182 | - .sid 183 | - .spl 184 | - .spx 185 | - .swf 186 | - .ts 187 | - .vob 188 | - .wav 189 | - .wma 190 | - .wmv 191 | -------------------------------------------------------------------------------- /dircolors.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os.path, yaml 4 | from glob import glob 5 | 6 | ME = os.path.splitext(os.path.basename(__file__))[0] 7 | 8 | 9 | def here(fn): 10 | return os.path.join(os.path.dirname(__file__), fn) 11 | 12 | 13 | def main(): 14 | tmpl = open(here(ME+'.tmpl')).read() 15 | for yml in glob(here('*.yml')): 16 | data = yaml.load(open(yml).read()) 17 | fmt = data['format'] 18 | lines = [] 19 | for n, exts in data['extensions'].items(): 20 | for ext in exts: 21 | lines.append(' '.join([ext, fmt.format(n=n)])) 22 | open(os.path.splitext(yml)[0], 'w').write(tmpl.replace('{{DATA}}', '\n'.join(lines))) 23 | 24 | 25 | if __name__ == '__main__': 26 | main() 27 | -------------------------------------------------------------------------------- /dircolors.tmpl: -------------------------------------------------------------------------------- 1 | # Configuration file for dircolors, a utility to help you set the 2 | # LS_COLORS environment variable used by GNU ls with the --color option. 3 | # Copyright (C) 1996, 1999-2011 Free Software Foundation, Inc. 4 | # Copying and distribution of this file, with or without modification, 5 | # are permitted provided the copyright notice and this notice are preserved. 6 | # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the 7 | # slackware version of dircolors) are recognized but ignored. 8 | # Below, there should be one TERM entry for each termtype that is colorizable 9 | 10 | TERM Eterm 11 | TERM ansi 12 | TERM color-xterm 13 | TERM con132x25 14 | TERM con132x30 15 | TERM con132x43 16 | TERM con132x60 17 | TERM con80x25 18 | TERM con80x28 19 | TERM con80x30 20 | TERM con80x43 21 | TERM con80x50 22 | TERM con80x60 23 | TERM cons25 24 | TERM console 25 | TERM cygwin 26 | TERM dtterm 27 | TERM eterm-color 28 | TERM gnome 29 | TERM gnome-256color 30 | TERM jfbterm 31 | TERM konsole 32 | TERM kterm 33 | TERM linux 34 | TERM linux-c 35 | TERM mach-color 36 | TERM mlterm 37 | TERM putty 38 | TERM rxvt 39 | TERM rxvt-256color 40 | TERM rxvt-cygwin 41 | TERM rxvt-cygwin-native 42 | TERM rxvt-unicode 43 | TERM rxvt-unicode-256color 44 | TERM rxvt-unicode256 45 | TERM screen 46 | TERM screen-256color 47 | TERM screen-256color-bce 48 | TERM screen-bce 49 | TERM screen-w 50 | TERM screen.rxvt 51 | TERM screen.linux 52 | TERM terminator 53 | TERM vt100 54 | TERM xterm 55 | TERM xterm-16color 56 | TERM xterm-256color 57 | TERM xterm-88color 58 | TERM xterm-color 59 | TERM xterm-debian 60 | 61 | # Below are the color init strings for the basic file types. A color init 62 | # string consists of one or more of the following numeric codes: 63 | # Attribute codes: 64 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed 65 | # Text color codes: 66 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white 67 | # Background color codes: 68 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white 69 | #NORMAL 00 # no color code at all 70 | #FILE 00 # regular file: use no color at all 71 | RESET 0 # reset to "normal" color 72 | DIR 01;34 # directory 73 | LINK 01;36 # symbolic link. (If you set this to 'target' instead of a 74 | # numerical value, the color is as for the file pointed to.) 75 | MULTIHARDLINK 00 # regular file with more than one link 76 | FIFO 40;33 # pipe 77 | SOCK 01;35 # socket 78 | DOOR 01;35 # door 79 | BLK 40;33;01 # block device driver 80 | CHR 40;33;01 # character device driver 81 | ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file 82 | SETUID 37;41 # file that is setuid (u+s) 83 | SETGID 30;43 # file that is setgid (g+s) 84 | CAPABILITY 30;41 # file with capability 85 | STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) 86 | OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky 87 | STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable 88 | EXEC 01;32 # This is for files with execute permission: 89 | 90 | {{DATA}} 91 | 92 | # vim:set ft=dircolors: 93 | --------------------------------------------------------------------------------