Dircolors

From AleikoumWiki

(Difference between revisions)
Jump to: navigation, search
m
m
Line 8: Line 8:
Contenu du fichier '''dircolors''' :
Contenu du fichier '''dircolors''' :
 +
<pre>
#########################################################################
#########################################################################
# #
# #
Line 15: Line 16:
# last MAJ : 2007-07-23 16:14 #
# last MAJ : 2007-07-23 16:14 #
# e.bensouiden@gmail.com #
# e.bensouiden@gmail.com #
-
#########################################################################<br /><br />
+
#########################################################################
 +
 
 +
 
TERM linux
TERM linux
TERM linux-c
TERM linux-c
Line 38: Line 41:
TERM screen-w
TERM screen-w
TERM vt100
TERM vt100
-
TERM Eterm<br />
+
TERM Eterm
-
NORMAL 00 # valeur par defaut
+
 
-
FILE 00 # fichier courant non ecrase par une directive decrite plus bas
+
# Below are the color init strings for the basic file types. A color init
-
DIR 01;34 # repertoire
+
# string consists of one or more of the following numeric codes:
-
LINK 22;33 # lien symbolique
+
# Attribute codes:
-
FIFO 40;33
+
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
-
SOCK 01;35
+
# Text color codes:
-
DOOR 01;35
+
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
-
BLK 40;33;01
+
# Background color codes:
-
CHR 40;33;01
+
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
-
ORPHAN 40;31;01 # lien symbolique quand la source n existe pas
+
 
-
EXEC 22;32<br />
+
NORMAL 00 # valeur par defaut
-
# archive formats
+
FILE 00 # fichier courant non ecrase par une directive decrite plus bas
-
.tar 01;31
+
DIR 01;34 # repertoire
-
.tgz 01;31
+
LINK 22;33 # lien symbolique
-
.arj 01;31
+
FIFO 40;33
-
.taz 01;31
+
SOCK 01;35
-
.lzh 01;31
+
DOOR 01;35
-
.zip 01;31
+
BLK 40;33;01
-
.z 01;31
+
CHR 40;33;01
-
.Z 01;31
+
ORPHAN 40;31;01 # lien symbolique quand la source n existe pas
-
.gz 01;31
+
EXEC 22;32
-
.bz2 01;31
+
 
-
.deb 01;31
+
# archive formats
-
.rpm 01;31
+
.tar 01;31
-
.jar 01;31<br />
+
.tgz 01;31
-
# log formats
+
.arj 01;31
-
*.log 01;35
+
.taz 01;31
-
*_log 01;35<br />
+
.lzh 01;31
-
# conf formats
+
.zip 01;31
-
*.conf 04;31
+
.z 01;31
-
*.config 04;31
+
.Z 01;31
-
*_conf 04;31
+
.gz 01;31
-
*_config 04;31
+
.bz2 01;31
-
*.cfg 04;31
+
.deb 01;31
-
*_cfg 04;31
+
.rpm 01;31
-
*.cnf 04;31
+
.jar 01;31
-
*_cnf 04;31
+
 
 +
# log formats
 +
*.log 01;35
 +
*_log 01;35
 +
 
 +
# conf formats
 +
*.conf 04;31
 +
*.config 04;31
 +
*_conf 04;31
 +
*_config 04;31
 +
*.cfg 04;31
 +
*_cfg 04;31
 +
*.cnf 04;31
 +
*_cnf 04;31
 +
</pre>

Revision as of 11:36, 3 November 2008

Pour pouvoir changer les couleurs de votre console le fichier dircolors est important ! A placer dans son home par exemple, il suffit ensuite d'utiliser la commande suivante pour que les modifications soient pris en compte

eval `dircolors -b ~/.dircolors`


Pensez a rajouter la commande dans votre bashrc ;)

Contenu du fichier dircolors :

 #########################################################################
 #                                                                       #
 #              Mon ~/.dircolors par Erwan Laby Ben Souiden              #
 #              -------------------------------------------              #
 #                                                                       #
 # last MAJ : 2007-07-23 16:14                                           #
 # e.bensouiden@gmail.com                                                #
 #########################################################################


 TERM linux
 TERM linux-c
 TERM mach-color
 TERM console
 TERM con132x25
 TERM con132x30
 TERM con132x43
 TERM con132x60
 TERM con80x25
 TERM con80x28
 TERM con80x30
 TERM con80x43
 TERM con80x50
 TERM con80x60
 TERM dtterm
 TERM xterm
 TERM xterm-color
 TERM xterm-debian
 TERM rxvt
 TERM screen
 TERM screen-w
 TERM vt100
 TERM Eterm

# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

NORMAL 00	# valeur par defaut
FILE 00 	# fichier courant non ecrase par une directive decrite plus bas
DIR 01;34 	# repertoire
LINK 22;33 	# lien symbolique 
FIFO 40;33	
SOCK 01;35	
DOOR 01;35	
BLK 40;33;01	
CHR 40;33;01 	
ORPHAN 40;31;01 # lien symbolique quand la source n existe pas
EXEC 22;32

# archive formats
.tar 01;31
.tgz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.z   01;31
.Z   01;31
.gz  01;31
.bz2 01;31
.deb 01;31
.rpm 01;31
.jar 01;31

# log formats
*.log 01;35
*_log 01;35

# conf formats
*.conf 04;31
*.config 04;31
*_conf 04;31
*_config 04;31
*.cfg 04;31
*_cfg 04;31
*.cnf 04;31
*_cnf 04;31
Personal tools