1 |
Hallo Ihr |
2 |
|
3 |
Ich versuche bereits seit einigen Tagen, immer |
4 |
mal wieder, die Farben in |
5 |
/etc/DIR_COLORS anzupassen. |
6 |
|
7 |
Ohne Erfolg bisher, denn die Datei wird nicht eingelesen. |
8 |
Soweit ich es beurteilen kann, wird statt /etc/DIR_COLORS |
9 |
die default Einstellung für ls --color verwendet. |
10 |
|
11 |
Dieser "Fehler" ist nicht lebenswichtig, bestenfalls nerfig. |
12 |
Es stört mich halt, dass es net funktioniert. ;-( |
13 |
Kann mir bitte jemand einen Tip geben, warum das so ist. |
14 |
Ist evtl. die Syntax in der .bashrc falsch ?? |
15 |
|
16 |
danke und auf wiederlesen |
17 |
|
18 |
Thilo |
19 |
|
20 |
|
21 |
in meiner ~/.bashrc steht: |
22 |
### dircolors will color all the entries in commands like ls etc |
23 |
eval `dircolors -b /etc/DIR_COLORS` |
24 |
|
25 |
### enable color support of ls and also add handy aliases |
26 |
if [ "$TERM" != "dumb" ]; then |
27 |
eval `dircolors -b` |
28 |
alias ls='/bin/ls --color=auto -F' |
29 |
fi |
30 |
|
31 |
|
32 |
Trotzdem wird diese Datei nicht eingelsen, denn ein : |
33 |
$ dircolors -p |
34 |
|
35 |
zeigt: |
36 |
====================================== |
37 |
# Configuration file for dircolors, a utility to help you set the |
38 |
# LS_COLORS environment variable used by GNU ls with the --color option. |
39 |
|
40 |
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the |
41 |
# slackware version of dircolors) are recognized but ignored. |
42 |
|
43 |
# Below, there should be one TERM entry for each termtype that is |
44 |
colorizable |
45 |
TERM linux |
46 |
TERM linux-c |
47 |
TERM mach-color |
48 |
TERM console |
49 |
TERM con132x25 |
50 |
TERM con132x30 |
51 |
TERM con132x43 |
52 |
TERM con132x60 |
53 |
TERM con80x25 |
54 |
TERM con80x28 |
55 |
TERM con80x30 |
56 |
TERM con80x43 |
57 |
TERM con80x50 |
58 |
TERM con80x60 |
59 |
TERM dtterm |
60 |
TERM xterm |
61 |
TERM xterm-color |
62 |
TERM xterm-debian |
63 |
TERM rxvt |
64 |
TERM screen |
65 |
TERM screen-w |
66 |
TERM vt100 |
67 |
TERM Eterm |
68 |
|
69 |
# Below are the color init strings for the basic file types. A color init |
70 |
# string consists of one or more of the following numeric codes: |
71 |
# Attribute codes: |
72 |
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed |
73 |
# Text color codes: |
74 |
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white |
75 |
# Background color codes: |
76 |
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white |
77 |
NORMAL 00 # global default, although everything should be something. |
78 |
FILE 00 # normal file |
79 |
DIR 01;34 # directory |
80 |
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a |
81 |
# numerical value, the color is as for the file pointed to.) |
82 |
FIFO 40;33 # pipe |
83 |
SOCK 01;35 # socket |
84 |
DOOR 01;35 # door |
85 |
BLK 40;33;01 # block device driver |
86 |
CHR 40;33;01 # character device driver |
87 |
ORPHAN 40;31;01 # symlink to nonexistent file |
88 |
|
89 |
# This is for files with execute permission: |
90 |
EXEC 01;32 |
91 |
|
92 |
# List any file extensions like '.gz' or '.tar' that you would like ls |
93 |
# to colorize below. Put the extension, a space, and the color init string. |
94 |
# (and any comments you want to add after a '#') |
95 |
|
96 |
# If you use DOS-style suffixes, you may want to uncomment the following: |
97 |
#.cmd 01;32 # executables (bright green) |
98 |
#.exe 01;32 |
99 |
#.com 01;32 |
100 |
#.btm 01;32 |
101 |
#.bat 01;32 |
102 |
|
103 |
.tar 01;31 # archives or compressed (bright red) |
104 |
.tgz 01;31 |
105 |
.arj 01;31 |
106 |
.taz 01;31 |
107 |
.lzh 01;31 |
108 |
.zip 01;31 |
109 |
.z 01;31 |
110 |
.Z 01;31 |
111 |
.gz 01;31 |
112 |
.bz2 01;31 |
113 |
.deb 01;31 |
114 |
.rpm 01;31 |
115 |
.jar 01;31 |
116 |
|
117 |
# image formats |
118 |
.jpg 01;35 |
119 |
.jpeg 01;35 |
120 |
.gif 01;35 |
121 |
.bmp 01;35 |
122 |
.pbm 01;35 |
123 |
.pgm 01;35 |
124 |
.ppm 01;35 |
125 |
.tga 01;35 |
126 |
.xbm 01;35 |
127 |
.xpm 01;35 |
128 |
.tif 01;35 |
129 |
.tiff 01;35 |
130 |
.png 01;35 |
131 |
.mov 01;35 |
132 |
.mpg 01;35 |
133 |
.mpeg 01;35 |
134 |
.avi 01;35 |
135 |
.fli 01;35 |
136 |
.gl 01;35 |
137 |
.dl 01;35 |
138 |
.xcf 01;35 |
139 |
.xwd 01;35 |
140 |
|
141 |
# audio formats |
142 |
.ogg 01;35 |
143 |
.mp3 01;35 |
144 |
.wav 01;35 |
145 |
|
146 |
|
147 |
======================================= |
148 |
|
149 |
ein |
150 |
$ cat /etc/DIR_COLORS |
151 |
|
152 |
zeigt jedoch: |
153 |
|
154 |
====================================== |
155 |
# Configuration file for dircolors, a utility to help you set the |
156 |
# LS_COLORS environment variable used by GNU ls with the --color option. |
157 |
# |
158 |
# You can copy this file to .dir_colors in your $HOME directory to override |
159 |
# the system defaults. |
160 |
# |
161 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/coreutils/files/DIR_COLORS,v |
162 |
1.3 2004/06/30 15:13:00 vapier Exp $ |
163 |
|
164 |
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, |
165 |
but not |
166 |
# pipes. 'all' adds color characters to all output. 'none' shuts |
167 |
colorization |
168 |
# off. |
169 |
COLOR tty |
170 |
|
171 |
# Extra command line options for ls go here. |
172 |
# Basically these ones are: |
173 |
# -F = show '/' for dirs, '*' for executables, etc. |
174 |
# -b = better support for special characters |
175 |
# -T 0 = don't trust tab spacing when formatting ls output. |
176 |
OPTIONS -F -b -T 0 |
177 |
|
178 |
# Below, there should be one TERM entry for each termtype that is |
179 |
colorizable |
180 |
TERM xterm |
181 |
TERM rxvt |
182 |
TERM linux |
183 |
TERM linux-c |
184 |
TERM mach-color |
185 |
TERM console |
186 |
TERM con132x25 |
187 |
TERM con132x30 |
188 |
TERM con132x43 |
189 |
TERM con132x60 |
190 |
TERM con80x25 |
191 |
TERM con80x28 |
192 |
TERM con80x30 |
193 |
TERM con80x43 |
194 |
TERM con80x50 |
195 |
TERM con80x60 |
196 |
TERM cons25 |
197 |
TERM xterm-color |
198 |
TERM xterm-debian |
199 |
TERM color-xterm |
200 |
TERM color_xterm |
201 |
TERM screen |
202 |
TERM screen-w |
203 |
TERM vt100 |
204 |
TERM dtterm |
205 |
TERM ansi |
206 |
TERM Eterm |
207 |
|
208 |
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) |
209 |
EIGHTBIT 1 |
210 |
|
211 |
# Below are the color init strings for the basic file types. A color init |
212 |
# string consists of one or more of the following numeric codes: |
213 |
# Attribute codes: |
214 |
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed |
215 |
# Text color codes: |
216 |
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white |
217 |
# Background color codes: |
218 |
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white |
219 |
NORMAL 00 # global default, although everything should be something. |
220 |
FILE 00 # normal file |
221 |
DIR 01;34 # directory |
222 |
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a |
223 |
# numerical value, the color is as for the file pointer to.) |
224 |
FIFO 40;33 # pipe |
225 |
SOCK 01;35 # socket |
226 |
DOOR 01;35 # door |
227 |
BLK 40;33;01 # block device driver |
228 |
CHR 40;33;01 # character device driver |
229 |
ORPHAN 01;05;37;41 # orphaned syminks |
230 |
MISSING 01;05;37;41 # ... and the files they point to |
231 |
|
232 |
# This is for files with execute permission: |
233 |
EXEC 01;32 |
234 |
|
235 |
# List any file extensions like '.gz' or '.tar' that you would like ls |
236 |
# to colorize below. Put the extension, a space, and the color init string. |
237 |
# (and any comments you want to add after a '#') |
238 |
|
239 |
.cmd 01;32 # executables (bright green) |
240 |
.exe 01;32 |
241 |
.com 01;32 |
242 |
.btm 01;32 |
243 |
.bat 01;32 |
244 |
.sh 01;32 |
245 |
.csh 01;32 |
246 |
|
247 |
.tar 01;31 # archives or compressed (bright red) |
248 |
.tgz 01;31 |
249 |
.arj 01;31 |
250 |
.taz 01;31 |
251 |
.lzh 01;31 |
252 |
.zip 01;31 |
253 |
.z 01;31 |
254 |
.Z 01;31 |
255 |
.gz 01;31 |
256 |
.bz2 01;31 |
257 |
.bz 01;31 |
258 |
.tbz2 01;31 |
259 |
.tz 01;31 |
260 |
.deb 01;31 |
261 |
.rpm 01;31 |
262 |
.rar 01;31 |
263 |
.ace 01;31 |
264 |
.zoo 01;31 |
265 |
.cpio 01;31 |
266 |
|
267 |
|
268 |
.jpg 01;35 # image formats |
269 |
.jpeg 01;35 |
270 |
.gif 01;35 |
271 |
.bmp 01;35 |
272 |
.ppm 01;35 |
273 |
.tga 01;35 |
274 |
.xbm 01;35 |
275 |
.xpm 01;35 |
276 |
.tif 01;35 |
277 |
.tiff 01;35 |
278 |
.png 00;32 |
279 |
.mng 01;35 |
280 |
.xcf 01;35 |
281 |
.pcx 01;35 |
282 |
.mpg 01;35 |
283 |
.mpeg 01;35 |
284 |
.m2v 01;35 # MPEG-2 Video only |
285 |
.avi 01;35 |
286 |
.mkv 01;35 # Matroska (http://matroska.org/) |
287 |
.ogm 01;35 # Ogg Media File |
288 |
.mp4 01;35 # "Offical" container for MPEG-4 |
289 |
.m4v 01;35 # MPEG-4 Video only |
290 |
.mp4v 01;35 # MPEG-4 Video only |
291 |
.mov 01;35 # Quicktime (http://developer.apple.com/qa/qtw/qtw99.html) |
292 |
.qt 01;35 # Quicktime (http://developer.apple.com/qa/qtw/qtw99.html) |
293 |
.wmv 01;35 # Windows Media Video |
294 |
.wma 01;35 |
295 |
.asf 01;35 # Advanced Systems Format (contains Windows Media Video) |
296 |
.rm 01;35 # Real Media |
297 |
.rmvb 01;35 # Real Media Variable Bitrate |
298 |
.flc 01;35 # AutoDesk Animator |
299 |
.fli 01;35 # AutoDesk Animator |
300 |
.gl 01;35 |
301 |
.dl 01;35 |
302 |
|
303 |
.pdf 00;32 # Document files |
304 |
.ps 00;32 |
305 |
.txt 00;32 |
306 |
.log 00;32 |
307 |
.tex 00;32 |
308 |
.doc 00;32 |
309 |
|
310 |
.mp3 00;36 # Audio files |
311 |
.wav 00;36 |
312 |
.mid 00;36 |
313 |
.midi 00;36 |
314 |
.au 00;36 |
315 |
.ogg 00;36 |
316 |
|
317 |
|
318 |
-- |
319 |
gentoo-user-de@g.o mailing list |