From cbd98c86ba3e9947fbbce4156b7b8f564bd5a288 Mon Sep 17 00:00:00 2001 From: Magnus Woldrich Date: Tue, 12 Apr 2011 10:47:39 +0200 Subject: [PATCH] Use the dircolors format instead. Group by filetype, and update the documentation. --- LS_COLORS | 433 +++++++++++++++++++++++++++++++++++++++++++++++- README.markdown | 324 +++--------------------------------- 2 files changed, 452 insertions(+), 305 deletions(-) diff --git a/LS_COLORS b/LS_COLORS index db75f7d..9a271b0 100644 --- a/LS_COLORS +++ b/LS_COLORS @@ -1,2 +1,431 @@ -LS_COLORS="*.m4a=38;5;137;1:*.s3m=38;5;71;1:*.S3M=38;5;71;1:*.mod=38;5;72:*.sid=38;5;71:*.mov=38;5;42:*.MOV=38;5;42:*.qcow=38;5;141:*.bak=38;5;41;1:*.signature=38;5;206:*.old=38;5;242:*.err=38;5;160;1:*.error=38;5;160;1:*.go=38;5;36;1:*.htm=38;5;125;1:*.html=38;5;125;1:*.fcm=38;5;41:*.fm2=38;5;35:*.torrent=38;5;58:*.mfasl=38;5;73:*.rdf=38;5;144:*.sqlite=38;5;60:*.tdy=38;5;214:*.ogv=38;5;94:*.out=38;5;46;1:*.un~=38;5;240:*.sample=38;5;130;1:*.example=38;5;225;1:*.enc=38;5;110;3:*.map=38;5;58;3:*.mf=38;5;220;3:*.tfm=38;5;64:*.pfb=38;5;64:*.pfm=38;5;64:*.afm=38;5;64:*.def=38;5;136:*.mtx=38;5;36;3:*.tex=38;5;172:*.etx=38;5;36;3:*.sty=38;5;58:*.cfg=1:*.properties=38;5;197;1:*.m4=38;5;196;3:*.tfnt=38;5;140:*.tcl=38;5;64;1:*.typelib=38;5;49:*.pfa=38;5;43:*.sed=38;5;130;1:*.awk=38;5;148;1:*.svg=38;5;24;1:*.ttf=38;5;69;1:*.cpp=38;5;24;1:*.cs=38;5;74;1:*.java=38;5;142;1:*.jsm=38;5;142;1:*.jad=38;5;142:*.jar=38;5;142:*.jhtm=38;5;142:*.jsp=38;5;142:*.ru=38;5;142:*.js=38;5;42:*.jsm=38;5;42:*.lisp=38;5;204;1:*.coffee=38;5;94;1:*.asm=38;5;240;1:*.mp4=38;5;124:*.flv=38;5;131:*.spl=38;5;44:*.sug=38;5;44:*.1=38;5;196;1:*.eps=38;5;192:*.xpm=38;5;32:*.gif=38;5;35:*.info=38;5;101:*.lua=38;5;34;1:*.t=38;5;028;1:*.textile=38;5;106:ln=target:*.hs=38;5;159:*.ini=38;5;122:*.part=38;5;240:*.pid=38;5;160:*.pod=38;5;172;1:*.vim=1:*.git=38;5;197:*.urlview=38;5;85:*.dump=38;5;119:*.conf=1:*.md=38;5;184:*.markdown=38;5;184:*.mkd=38;5;184:*.h=38;5;81:*.rb=38;5;192:*.c=38;5;110:*.diff=42;38:*.yml=38;5;208:*.PL=38;5;160:*.csv=38;5;78:tw=38;5;208;1:*.chm=38;5;144:*.bin=38;5;249:*.sms=38;5;33:*.pdf=38;5;203:*.cbz=38;5;140:*.cbr=38;5;140:*.nes=38;5;160:*.mpg=38;5;38:*.ts=38;5;39:*.sfv=38;5;197:*.m3u=38;5;172:*.txt=38;5;192:*.log=38;5;190:*.bash=38;5;173:*.swp=38;5;241:*.swo=38;5;236:*.theme=38;5;109:*.zsh=38;5;173:*.nfo=38;5;220:mi=38;5;124:or=38;5;160:ex=38;5;148;1:ln=target:pi=38;5;126:ow=38;5;208;1:di=38;5;30:*.pm=;38;5;197;1:*.pl=38;5;214:*.sh=38;5;113:*.patch=45;37:*.tar=38;5;118:*.tar.gz=38;5;34:*.zip=38;5;11:*.rar=38;5;106:*.tgz=38;5;11:*.7z=38;5;11:*.mp3=38;5;191:*.flac=38;5;166;1:*.mkv=38;5;202:*.avi=38;5;114:*.wmv=38;5;113:*.jpg=38;5;66:*.JPG=38;5;66:*.jpeg=38;5;67:*.png=38;5;68:*.pacnew=38;5;33:*.xz=38;5;118:*.iso=38;5;124:*.css=38;5;91:*.php=38;5;93:*.gitignore=38;5;240:*.tmp=38;5;244:*.py=38;5;41:*.rmvb=38;5;112:*.arj=38;5;11:*.a=38;5;59:*.a00=38;5;11:*.A64=38;5;82:*.pc=38;5;100:*.a52=38;5;112:*.gel=38;5;83:*.ggl=38;5;83:*.directory=38;5;83:*.a78=38;5;112:*.atr=38;5;213:*.j64=38;5;102:st=1;38;5;208:*.st=38;5;208:*.dat=38;5;165:*.db=38;5;60:*.xml=38;5;23:*.cdi=38;5;124:*.nrg=38;5;124:*.32x=38;5;137:*.gg=38;5;138:*.cue=38;5;112:*.adf=38;5;35:*.nds=38;5;193:*.gb=38;5;203:*.gbc=38;5;204:*.gba=38;5;205:*.sav=38;5;220:*.r00=38;5;233:*.r01=38;5;234:*.r02=38;5;235:*.r03=38;5;236:*.r04=38;5;237:*.r05=38;5;238:*.r06=38;5;239:*.r07=38;5;240:*.r08=38;5;241:*.r09=38;5;242:*.r10=38;5;243:*.r11=38;5;244:*.r12=38;5;245:*.r13=38;5;246:*.r14=38;5;247:*.r15=38;5;248:*.r16=38;5;249:*.r17=38;5;250:*.r18=38;5;251:*.r19=38;5;252:*.r20=38;5;253:*.r21=38;5;254:*.r22=38;5;255:*.r47=38;5;233:*.r46=38;5;234:*.r45=38;5;235:*.r44=38;5;236:*.r43=38;5;237:*.r42=38;5;238:*.r41=38;5;239:*.r40=38;5;240:*.r39=38;5;241:*.r38=38;5;242:*.r37=38;5;243:*.r36=38;5;244:*.r35=38;5;245:*.r34=38;5;246:*.r33=38;5;247:*.r32=38;5;248:*.r31=38;5;249:*.r30=38;5;250:*.r29=38;5;251:*.r28=38;5;252:*.r27=38;5;253:*.r26=38;5;254:*.r25=38;5;255:*.json=38;5;199:*.SKIP=38;5;244:*.1p=38;5;160:*.3p=38;5;160:*.r48=38;5;234:*.r49=38;5;235:*.r50=38;5;236:*.r51=38;5;237:*.r52=38;5;238:*.r53=38;5;239:*.r54=38;5;240:*.r55=38;5;241:*.r56=38;5;242:*.r57=38;5;243:*.r58=38;5;244:*.r59=38;5;245:*.r60=38;5;246:*.r61=38;5;247:*.r62=38;5;248:*.r63=38;5;249:*.r64=38;5;250:*.r65=38;5;251:*.r66=38;5;252:*.r67=38;5;253:*.r68=38;5;254:*.r69=38;5;255:*.r69=38;5;255:*.r70=38;5;254:*.r71=38;5;253:*.r72=38;5;252:*.r73=38;5;251:*.r74=38;5;250:*.r75=38;5;249:*.r76=38;5;248:*.r77=38;5;247:*.r78=38;5;246:*.r79=38;5;245:*.r80=38;5;244:*.r81=38;5;243:*.r82=38;5;242:*.r83=38;5;241:*.r84=38;5;240:*.r85=38;5;239:*.r86=38;5;238:*.r87=38;5;237:*.r88=38;5;236:*.r89=38;5;235:*.r90=38;5;234:*.r91=38;5;235:*.r92=38;5;236:*.r93=38;5;237:*.r94=38;5;238:*.r95=38;5;239:*.r96=38;5;240:*.r97=38;5;241:*.r98=38;5;242:*.r99=38;5;243:*.r100=38;5;244:*.r101=38;5;240:*.r102=38;5;241:*.r103=38;5;242:*.r104=38;5;243:*.r105=38;5;244:*.r106=38;5;245:*.r107=38;5;246:*.r108=38;5;247:*.r109=38;5;248:*.r110=38;5;249:*.r111=38;5;250:*.r112=38;5;251:*.r113=38;5;252:*.r114=38;5;253:*.r115=38;5;254:*.r116=38;5;255" -# vim: syntax=:nowrap tw=0: +# LS_COLORS +# Maintainer: Magnus Woldrich +# URL: https://github.com/trapd00r/LS_COLORS +# Version: 0.200 +# Updated: 2011-04-12 10:43:12 +# +# This is a collection of extension:color mappings, suitable to use as your +# LS_COLORS environment variable. Most of them use the extended color map, +# described in the ECMA-48 document; in other words, you'll need a terminal +# with capabilities of displaying 256 colors. +# +# As of this writing, around 300 different filetypes/extensions is supported. +# That's indeed a lot of extensions, but there's a lot more! Therefore I need +# your help. +# +# Fork this project on github, add the extensions you are missing, and send me +# a pull request. +# +# For files that usually ends up next to each other, like html, css and js, +# try to pick colors that fit nicely together. Filetypes with multiple +# possible extensions, like htm and html, should have the same color. +# +# To install and use this file, put something like this is your shell resource +# file: +# +# eval( dircolors -b $HOME/.dircolors ) +# +# where .dircolors is this file. + + +BLK 38;5;68 +CAPABILITY 38;5;17 +CHR 38;5;113;1 +DIR 38;5;30 +DOOR 38;5;127 +EXEC 38;5;148;1 +FIFO 38;5;126 +FILE 38;5;253 +LINK target +MULTIHARDLINK 38;5;220;1 +NORMAL 38;5;254 +ORPHAN 48;5;196;38;5;232;1 +OTHER_WRITABLE 38;5;178;1 +SETGID 38;5;137;1 +SETUID 38;5;137 +SOCK 38;5;197 +STICKY 38;5;208;1 +STICKY_OTHER_WRITABLE 38;5;220;1 + + +# Code, text, documents +.PL 38;5;160 +.asm 38;5;240;1 +.awk 38;5;148;1 +.bash 38;5;173 +.c 38;5;110 +.cfg 1 +.coffee 38;5;94;1 +.conf 1 +.cpp 38;5;24;1 +.cs 38;5;74;1 +.css 38;5;91 +.csv 38;5;78 +.diff 48;5;197;38;5;232 +.enc 38;5;192;3 +.eps 38;5;192 +.etx 38;5;172 +.ex 38;5;148;1 +.example 38;5;225;1 +.git 38;5;197 +.gitignore 38;5;240 +.go 38;5;36;1 +.h 38;5;81 +.hs 38;5;159 +.htm 38;5;125;1 +.html 38;5;125;1 +.info 38;5;101 +.ini 38;5;122 +.java 38;5;142;1 +.jhtm 38;5;125;1 +.js 38;5;42 +.jsm 38;5;42 +.jsm 38;5;42 +.json 38;5;199 +.jsp 38;5;45 +.lisp 38;5;204;1 +.log 38;5;190 +.lua 38;5;34;1 +.map 38;5;58;3 +.markdown 38;5;184 +.md 38;5;184 +.mf 38;5;220;3 +.mfasl 38;5;73 +.mi 38;5;124 +.mkd 38;5;184 +.mtx 38;5;36;3 +.nfo 38;5;220 +.pacnew 38;5;33 +.patch 48;5;197;38;5;232 +.pc 38;5;100 +.pfa 38;5;43 +.php 38;5;93 +.pid 38;5;160 +.pl 38;5;214 +.pm 38;5;197;1 +.pod 38;5;172;1 +.py 38;5;41 +.rb 38;5;192 +.rdf 38;5;144 +.ru 38;5;142 +.sed 38;5;130;1 +.sfv 38;5;197 +.sh 38;5;113 +.signature 38;5;206 +.sty 38;5;58 +.sug 38;5;44 +.t 38;5;28;1 +.tcl 38;5;64;1 +.tdy 38;5;214 +.tex 38;5;172 +.textile 38;5;106 +.tfm 38;5;64 +.tfnt 38;5;140 +.theme 38;5;109 +.txt 38;5;192 +.urlview 38;5;85 +.vim 1 +.xml 38;5;199 +.yml 38;5;208 +.zsh 38;5;173 + +# Build stuff +.1 38;5;196;1 +.1p 38;5;160 +.3p 38;5;160 +.old 38;5;242 +.out 38;5;46;1 + +# Pictures, icons +.bmp 38;5;62 +.cdr 38;5;59 +.gif 38;5;72 +.ico 38;5;73 +.jpeg 38;5;66 +.jpg 38;5;66 +.JPG 38;5;66 +.png 38;5;68;1 +.svg 38;5;24;1 +.xpm 38;5;36 + +# Emulator roms, emulator savegames +.32x 38;5;137 +.A64 38;5;82 +.a00 38;5;11 +.a52 38;5;112 +.a64 38;5;82 +.a78 38;5;112 +.adf 38;5;35 +.atr 38;5;213 +.cdi 38;5;124 +.fm2 38;5;35 +.gb 38;5;203 +.gba 38;5;205 +.gbc 38;5;204 +.gel 38;5;83 +.gg 38;5;138 +.ggl 38;5;83 +.j64 38;5;102 +.nds 38;5;193 +.nes 38;5;160 +.rom 38;5;59;1 +.sav 38;5;220 +.sms 38;5;33 +.st 38;5;208;1 + +# Images +.iso 38;5;124 +.nrg 38;5;124 +.qcow 38;5;141 + +# Video +.MOV 38;5;42 +.avi 38;5;114 +.flv 38;5;131 +.mkv 38;5;202 +.mov 38;5;42 +.mp4 38;5;124 +.mpg 38;5;38 +.mpeg 38;5;38 +.ogv 38;5;94 +.rmvb 38;5;112 +.sample 38;5;130;1 +.ts 38;5;39 +.wmv 38;5;113 + +# Music, sounds +.S3M 38;5;71;1 +.cue 38;5;112 +.dat 38;5;165 +.fcm 38;5;41 +.flac 38;5;166;1 +.m3u 38;5;172 +.m4 38;5;196;3 +.m4a 38;5;137;1 +.mod 38;5;72 +.mp3 38;5;191 +.s3m 38;5;71;1 +.sid 38;5;69;1 +.spl 38;5;173 + +# Fonts +.afm 38;5;58 +.pfb 38;5;58 +.pfm 38;5;58 +.ttf 48;5;1 +.pcf 38;5;65 +.psf 38;5;64 + +# Backups, undo files, tempfiles +.bak 38;5;41;1 +.bin 38;5;249 +.swo 38;5;236 +.swp 38;5;241 +.tmp 38;5;244 +.un~ 38;5;240 + +# Databases +.db 38;5;60 +.dump 38;5;119 +.sqlite 38;5;60 +.typelib 38;5;60 + +# Compressed archives +.7z 38;5;40 +.a 38;5;46 +.arj 38;5;41 +.cbr 38;5;140 +.cbz 38;5;140 +.chm 38;5;144 +.jad 38;5;50 +.jar 38;5;51 +.part 38;5;240;1 +.pdf 38;5;203 +.r00 38;5;233 +.r01 38;5;234 +.r02 38;5;235 +.r03 38;5;236 +.r04 38;5;237 +.r05 38;5;238 +.r06 38;5;239 +.r07 38;5;240 +.r08 38;5;241 +.r09 38;5;242 +.r10 38;5;243 +.r100 38;5;244 +.r101 38;5;240 +.r102 38;5;241 +.r103 38;5;242 +.r104 38;5;243 +.r105 38;5;244 +.r106 38;5;245 +.r107 38;5;246 +.r108 38;5;247 +.r109 38;5;248 +.r11 38;5;244 +.r110 38;5;249 +.r111 38;5;250 +.r112 38;5;251 +.r113 38;5;252 +.r114 38;5;253 +.r115 38;5;254 +.r116 38;5;255 +.r12 38;5;245 +.r13 38;5;246 +.r14 38;5;247 +.r15 38;5;248 +.r16 38;5;249 +.r17 38;5;250 +.r18 38;5;251 +.r19 38;5;252 +.r20 38;5;253 +.r21 38;5;254 +.r22 38;5;255 +.r25 38;5;255 +.r26 38;5;254 +.r27 38;5;253 +.r28 38;5;252 +.r29 38;5;251 +.r30 38;5;250 +.r31 38;5;249 +.r32 38;5;248 +.r33 38;5;247 +.r34 38;5;246 +.r35 38;5;245 +.r36 38;5;244 +.r37 38;5;243 +.r38 38;5;242 +.r39 38;5;241 +.r40 38;5;240 +.r41 38;5;239 +.r42 38;5;238 +.r43 38;5;237 +.r44 38;5;236 +.r45 38;5;235 +.r46 38;5;234 +.r47 38;5;233 +.r48 38;5;234 +.r49 38;5;235 +.r50 38;5;236 +.r51 38;5;237 +.r52 38;5;238 +.r53 38;5;239 +.r54 38;5;240 +.r55 38;5;241 +.r56 38;5;242 +.r57 38;5;243 +.r58 38;5;244 +.r59 38;5;245 +.r60 38;5;246 +.r61 38;5;247 +.r62 38;5;248 +.r63 38;5;249 +.r64 38;5;250 +.r65 38;5;251 +.r66 38;5;252 +.r67 38;5;253 +.r68 38;5;254 +.r69 38;5;255 +.r69 38;5;255 +.r70 38;5;254 +.r71 38;5;253 +.r72 38;5;252 +.r73 38;5;251 +.r74 38;5;250 +.r75 38;5;249 +.r76 38;5;248 +.r77 38;5;247 +.r78 38;5;246 +.r79 38;5;245 +.r80 38;5;244 +.r81 38;5;243 +.r82 38;5;242 +.r83 38;5;241 +.r84 38;5;240 +.r85 38;5;239 +.r86 38;5;238 +.r87 38;5;237 +.r88 38;5;236 +.r89 38;5;235 +.r90 38;5;234 +.r91 38;5;235 +.r92 38;5;236 +.r93 38;5;237 +.r94 38;5;238 +.r95 38;5;239 +.r96 38;5;240 +.r97 38;5;241 +.r98 38;5;242 +.r99 38;5;243 +.rar 38;5;106;1 +.tar 38;5;118 +.tar.gz 38;5;34 +.tgz 38;5;35;1 +.xz 38;5;118 +.zip 38;5;41 + +# Other +.SKIP 38;5;244 +.def 38;5;136 +.directory 38;5;83 +.err 38;5;160;1 +.error 38;5;160;1 +.pi 38;5;126 +.properties 38;5;197;1 +.torrent 38;5;58 + + + + +TERM Eterm +TERM ansi +TERM color-xterm +TERM con132x25 +TERM con132x30 +TERM con132x43 +TERM con132x60 +TERM con80x25 +TERM con80x28 +TERM con80x30 +TERM con80x43 +TERM con80x50 +TERM con80x60 +TERM cons25 +TERM console +TERM cygwin +TERM dtterm +TERM eterm-color +TERM gnome +TERM gnome-256color +TERM jfbterm +TERM konsole +TERM kterm +TERM linux +TERM linux-c +TERM mach-color +TERM mlterm +TERM putty +TERM rxvt +TERM rxvt-256color +TERM rxvt-cygwin +TERM rxvt-cygwin-native +TERM rxvt-unicode +TERM rxvt-unicode-256color +TERM rxvt-unicode256 +TERM screen +TERM screen-256color +TERM screen-256color-bce +TERM screen-bce +TERM screen-w +TERM screen.rxvt +TERM screen.linux +TERM terminator +TERM vt100 +TERM xterm +TERM xterm-16color +TERM xterm-256color +TERM xterm-88color +TERM xterm-color +TERM xterm-debian + +# vim: ft=dircolors: diff --git a/README.markdown b/README.markdown index 4e43a38..8d691f5 100644 --- a/README.markdown +++ b/README.markdown @@ -1,19 +1,29 @@ LS_COLORS ========= -This is a collection of **extension:color** mappings, suitable to add as your -LS\_COLORS environment variable. Most of them use the extended colors described -in the ECMA-48 document; that means your terminal has to support 256 colors. +This is a collection of extension:color mappings, suitable to use as your +LS COLORS environment variable. Most of them use the extended color map, +described in the ECMA-48 document; in other words, you'll need a terminal +with capabilities of displaying 256 colors. -As of this writing - 2011-04-09 - about 291 different filetypes/extensions is -supported. That's a lot of extensions, but there's a lot more! Therefore I need -**Your** help. +As of this writing, around 300 different filetypes/extensions is supported. +That's indeed a lot of extensions, but there's a lot more! Therefore I need +your help. + +Fork this project on github, add the extensions you are missing, and send me +a pull request. + +For files that usually ends up next to each other, like html, css and js, +try to pick colors that fit nicely together. Filetypes with multiple +possible extensions, like htm and html, should have the same color. + +To install and use this file, put something like this is your shell resource +file: + + eval( dircolors -b $HOME/.dircolors ) + +where .dircolors is this file. -Fork this project, add the extensions you are missing and send me a pull -request. Try to make files that usally ends up next to eachother colors -that fit nicely together; html, css and php, for example. Filetypes with -multiple possible extensions should have the same color; .htm and .html, -for example. DEVELOPERS ========== @@ -35,295 +45,3 @@ SO WHAT DOES IT LOOK LIKE Here's a screenshot of the current selection: ![LS_COLORS](http://devel.japh.se/LS_COLORS/LS_COLORS.png) - -And a list of the currently supported extensions: - - 1 - 1p - 32x - 3p - 7z - a - a00 - a52 - A64 - a78 - adf - afm - arj - asm - atr - avi - awk - bak - bash - bin - c - cbr - cbz - cdi - cfg - chm - coffee - conf - cpp - cs - css - csv - cue - dat - db - def - diff - directory - dump - enc - eps - err - error - etx - example - fcm - flac - flv - fm2 - gb - gba - gbc - gel - gg - ggl - gif - git - gitignore - go - gz - h - hs - htm - html - info - ini - iso - j64 - jad - jar - java - jhtm - jpeg - jpg - JPG - js - jsm - json - jsp - lisp - log - lua - m3u - m4 - map - markdown - md - mf - mfasl - mkd - mkv - mov - MOV - mp3 - mp4 - mpg - mtx - nds - nes - nfo - nrg - ogv - old - out - pacnew - part - patch - pc - pdf - pfa - pfb - pfm - php - pid - pl - PL - pm - png - png - pod - properties - py - qcow - r00 - r01 - r02 - r03 - r04 - r05 - r06 - r07 - r08 - r09 - r10 - r100 - r101 - r102 - r103 - r104 - r105 - r106 - r107 - r108 - r109 - r11 - r110 - r111 - r112 - r113 - r114 - r115 - r116 - r12 - r13 - r14 - r15 - r16 - r17 - r18 - r19 - r20 - r21 - r22 - r25 - r26 - r27 - r28 - r29 - r30 - r31 - r32 - r33 - r34 - r35 - r36 - r37 - r38 - r39 - r40 - r41 - r42 - r43 - r44 - r45 - r46 - r47 - r48 - r49 - r50 - r51 - r52 - r53 - r54 - r55 - r56 - r57 - r58 - r59 - r60 - r61 - r62 - r63 - r64 - r65 - r66 - r67 - r68 - r69 - r70 - r71 - r72 - r73 - r74 - r75 - r76 - r77 - r78 - r79 - r80 - r81 - r82 - r83 - r84 - r85 - r86 - r87 - r88 - r89 - r90 - r91 - r92 - r93 - r94 - r95 - r96 - r97 - r98 - r99 - rar - rb - rdf - rmvb - ru - sample - sav - sed - sfv - sh - signature - SKIP - sms - spl - sqlite - st - sty - sug - svg - swo - swp - t - tar - tcl - tdy - tex - textile - tfm - tfnt - tgz - theme - tmp - torrent - ts - ttf - txt - typelib - un~ - urlview - vim - wmv - xml - xpm - xz - yml - zip - zsh - - - [0]: https://github.com/trapd00r/File-LsColor - [1]: https://github.com/trapd00r/File-LsColor/blob/master/bin/ls_color