Mercurial > repos > other > linux
comparison dircolors @ 40:7af4ce187680
Start to work with 256-colour terminal highlighting in "ls"
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 20 Mar 2017 21:07:16 +0000 |
parents | 281a9cb03796 |
children | 3680ddae8df8 |
comparison
equal
deleted
inserted
replaced
39:7eb30191fe0c | 40:7af4ce187680 |
---|---|
55 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed | 55 # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed |
56 # Text color codes: | 56 # Text color codes: |
57 # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white | 57 # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white |
58 # Background color codes: | 58 # Background color codes: |
59 # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white | 59 # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white |
60 # | |
61 # But we're mainly using 256-colour mode: 38=foreground, 5=256-colour | |
62 # then next number is number in colour table: | |
63 # https://en.wikipedia.org/wiki/ANSI_escape_code#Colors | |
60 | 64 |
61 NORMAL 00 # global default, although everything should be something. | 65 NORMAL 00 # global default, although everything should be something. |
62 FILE 00 # normal file | 66 FILE 00;38;5;236 # normal file |
63 DIR 01;34 # directory | 67 DIR 01;38;5;25 # directory |
64 LINK 00;36 # symbolic link | 68 LINK 00;38;5;30 # symbolic link |
65 FIFO 40;33 # pipe | 69 FIFO 48;5;236;38;5;178 # pipe |
66 SOCK 01;35 # socket | 70 SOCK 01;38;5;13 # socket |
67 DOOR 01;35 # door | 71 DOOR 01;38;5;13 # door |
68 BLK 40;33;01 # block device driver | 72 BLK 48;5;236;38;5;178;01 # block device driver |
69 CHR 40;33;01 # character device driver | 73 CHR 48;5;236;38;5;178;01 # character device driver |
70 ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file | 74 ORPHAN 48;5;236;31;01 # symlink to nonexistent file, or non-stat'able file |
71 MISSING 01;05;33;41 # ... and the files they point to | 75 MISSING 01;38;5;178;48;5;11 # ... and the files they point to |
72 SETUID 37;41 # file that is setuid (u+s) | 76 SETUID 37;48;5;11 # file that is setuid (u+s) |
73 SETGID 30;41 # file that is setgid (g+s) | 77 SETGID 38;5;236;48;5;11 # file that is setgid (g+s) |
74 CAPABILITY 30;43 # file with capability | 78 CAPABILITY 38;5;236;43 # file with capability |
75 STICKY_OTHER_WRITABLE 01;34;42 # dir that is sticky and other-writable (+t,o+w) - ala /tmp, and hence okay | 79 STICKY_OTHER_WRITABLE 01;38;5;12;42 # dir that is sticky and other-writable (+t,o+w) - ala /tmp, and hence okay |
76 OTHER_WRITABLE 01;31;42 # dir that is other-writable (o+w) and not sticky - 777 is bad so use red | 80 OTHER_WRITABLE 01;31;42 # dir that is other-writable (o+w) and not sticky - 777 is bad so use red |
77 STICKY 01;34;43 # dir with the sticky bit set (+t) and not other-writable | 81 STICKY 01;38;5;12;43 # dir with the sticky bit set (+t) and not other-writable |
78 | 82 |
79 | 83 |
80 # This is for files with execute permission: | 84 # This is for files with execute permission: |
81 EXEC 00;32 | 85 EXEC 00;38;5;70 |
82 | 86 |
83 # List any file extensions like '.gz' or '.tar' that you would like ls | 87 # List any file extensions like '.gz' or '.tar' that you would like ls |
84 # to colorize below. Put the extension, a space, and the color init string. | 88 # to colorize below. Put the extension, a space, and the color init string. |
85 # (and any comments you want to add after a '#') | 89 # (and any comments you want to add after a '#') |
86 | 90 |
87 # executables (green) | 91 # executables (green) |
88 .cmd 00;32 | 92 .cmd 00;38;5;70 |
89 .exe 00;32 | 93 .exe 00;38;5;70 |
90 .com 00;32 | 94 .com 00;38;5;70 |
91 .bat 00;32 | 95 .bat 00;38;5;70 |
92 .btm 00;32 | 96 .btm 00;38;5;70 |
93 .dll 00;32 | 97 .dll 00;38;5;70 |
94 .sh 00;32 | 98 .sh 00;38;5;70 |
95 | 99 |
96 # archives or compressed (red) | 100 # archives or compressed (brown) |
97 .tar 00;31 | 101 .tar 00;38;5;94 |
98 .tbz 00;31 | 102 .tbz 00;38;5;94 |
99 .tgz 00;31 | 103 .tgz 00;38;5;94 |
100 .rpm 00;31 | 104 .rpm 00;38;5;94 |
101 .deb 00;31 | 105 .deb 00;38;5;94 |
102 .arj 00;31 | 106 .arj 00;38;5;94 |
103 .taz 00;31 | 107 .taz 00;38;5;94 |
104 .lzh 00;31 | 108 .lzh 00;38;5;94 |
105 .lzma 00;31 | 109 .lzma 00;38;5;94 |
106 .zip 00;31 | 110 .zip 00;38;5;94 |
107 .zoo 00;31 | 111 .zoo 00;38;5;94 |
108 .z 00;31 | 112 .z 00;38;5;94 |
109 .Z 00;31 | 113 .Z 00;38;5;94 |
110 .gz 00;31 | 114 .gz 00;38;5;94 |
111 .bz2 00;31 | 115 .bz2 00;38;5;94 |
112 .tb2 00;31 | 116 .tb2 00;38;5;94 |
113 .tz2 00;31 | 117 .tz2 00;38;5;94 |
114 .tbz2 00;31 | 118 .tbz2 00;38;5;94 |
115 .xz 00;31 | 119 .xz 00;38;5;94 |
116 .7z 00;31 | 120 .7z 00;38;5;94 |
117 .jar 00;31 | 121 .jar 00;38;5;94 |
118 .iso 00;31 | 122 .iso 00;38;5;94 |
119 | 123 |
120 # image formats (magenta) | 124 # image formats (Tango purple-ish) |
121 .avi 00;35 | 125 .avi 00;38;5;98 |
122 .bmp 00;35 | 126 .bmp 00;38;5;98 |
123 .fli 00;35 | 127 .fli 00;38;5;98 |
124 .gif 00;35 | 128 .gif 00;38;5;98 |
125 .GIF 00;35 | 129 .GIF 00;38;5;98 |
126 .jpg 00;35 | 130 .jpg 00;38;5;98 |
127 .JPG 00;35 | 131 .JPG 00;38;5;98 |
128 .jpeg 00;35 | 132 .jpeg 00;38;5;98 |
129 .mng 00;35 | 133 .mng 00;38;5;98 |
130 .pcx 00;35 | 134 .pcx 00;38;5;98 |
131 .pbm 00;35 | 135 .pbm 00;38;5;98 |
132 .pgm 00;35 | 136 .pgm 00;38;5;98 |
133 .png 00;35 | 137 .png 00;38;5;98 |
134 .ppm 00;35 | 138 .ppm 00;38;5;98 |
135 .tga 00;35 | 139 .tga 00;38;5;98 |
136 .tif 00;35 | 140 .tif 00;38;5;98 |
137 .xbm 00;35 | 141 .xbm 00;38;5;98 |
138 .xpm 00;35 | 142 .xpm 00;38;5;98 |
139 .dl 00;35 | 143 .dl 00;38;5;98 |
140 .gl 00;35 | 144 .gl 00;38;5;98 |
141 .wmv 00;35 | 145 .wmv 00;38;5;98 |
142 .xcf 00;35 | 146 .xcf 00;38;5;98 |
143 .svg 00;35 | 147 .svg 00;38;5;98 |
144 .svgz 00;35 | 148 .svgz 00;38;5;98 |
145 .psd 00;35 | 149 .psd 00;38;5;98 |
146 .ico 00;35 | 150 .ico 00;38;5;98 |
147 | 151 |
148 # sound and video formats (yellow) | 152 # sound and video formats (yellow) |
149 .aiff 00;33 | 153 .aiff 00;38;5;178 |
150 .au 00;33 | 154 .au 00;38;5;178 |
151 .mid 00;33 | 155 .mid 00;38;5;178 |
152 .mp3 00;33 | 156 .mp3 00;38;5;178 |
153 .ogg 00;33 | 157 .ogg 00;38;5;178 |
154 .voc 00;33 | 158 .voc 00;38;5;178 |
155 .wav 00;33 | 159 .wav 00;38;5;178 |
156 .mov 00;33 | 160 .mov 00;38;5;178 |
157 .mpg 00;33 | 161 .mpg 00;38;5;178 |
158 .mpg 00;33 | 162 .mpg 00;38;5;178 |
159 .mpeg 00;33 | 163 .mpeg 00;38;5;178 |
160 .m2v 00;33 | 164 .m2v 00;38;5;178 |
161 .mkv 00;33 | 165 .mkv 00;38;5;178 |
162 .ogm 00;33 | 166 .ogm 00;38;5;178 |
163 .mp4 00;33 | 167 .mp4 00;38;5;178 |
164 .m4v 00;33 | 168 .m4v 00;38;5;178 |
165 .mp4v 00;33 | 169 .mp4v 00;38;5;178 |
166 .vob 00;33 | 170 .vob 00;38;5;178 |
167 .avi 00;33 | 171 .avi 00;38;5;178 |
168 .webm 00;33 | 172 .webm 00;38;5;178 |
169 .MP4 00;33 | 173 .MP4 00;38;5;178 |
170 .MPG 00;33 | 174 .MPG 00;38;5;178 |
171 .amr 00;33 | 175 .MP3 00;38;5;178 |
172 | 176 .amr 00;38;5;178 |
173 # Documents (normal blue) | 177 |
174 .html 00;34 | 178 # Documents |
175 .doc 00;34 | 179 .html 00;38;5;69 |
176 .pdf 00;34 | 180 .doc 00;38;5;69 |
177 .htm 00;34 | 181 .htm 00;38;5;69 |
178 .docx 00;34 | 182 .docx 00;38;5;69 |
179 .ppt 00;34 | 183 .ppt 00;38;5;69 |
180 .pptx 00;34 | 184 .pptx 00;38;5;69 |
181 .xsl 00;34 | 185 .xsl 00;38;5;69 |
182 .xslx 00;34 | 186 .xslx 00;38;5;69 |
183 .txt 00;34 | 187 .txt 00;38;5;69 |
184 .epub 00;34 | 188 .epub 00;38;5;69 |
185 .mobi 00;34 | 189 .mobi 00;38;5;69 |
186 .odt 00;34 | 190 .odt 00;38;5;69 |
187 .csv 00;34 | 191 .csv 00;38;5;69 |
192 | |
193 .pdf 00;38;5;124 | |
188 | 194 |
189 # Code (not enough colours!) | 195 # Code (not enough colours!) |
190 #.cs 00;34 | 196 #.cs 38;5;12 |
191 #.csproj 00;34 | 197 #.csproj 38;5;12 |
192 #.java 00;34 | 198 #.java 38;5;12 |
193 #.patch 00;34 | 199 #.patch 38;5;12 |
194 #.diff 00;34 | 200 #.diff 38;5;12 |
195 #.config 00;34 | 201 #.config 38;5;12 |
196 #.xml 00;34 | 202 #.cfg 38;5;12 |
197 #.js 00;34 | 203 #.xml 38;5;12 |
198 #.sql 00;34 | 204 #.js 38;5;12 |
199 #.php 00;34 | 205 #.sql 38;5;12 |
200 #.css 00;34 | 206 #.php 38;5;12 |
201 | 207 #.css 38;5;12 |
202 # backup files etc (white/grey - less obvious) | 208 #.vala 38;5;12 |
203 *~ 00;37 | 209 #.c 38;5;12 |
204 .bak 00;37 | 210 |
205 .pidb 00;37 | 211 # backup files, templates, etc (white/grey - less obvious) |
206 .mdb 00;37 | 212 *~ 00;38;5;250 |
207 | 213 .bak 00;38;5;250 |
214 .pidb 00;38;5;250 | |
215 .mdb 00;38;5;250 | |
216 .ott 00;38;5;250 | |
217 .ots 00;38;5;250 |