Dircolors

From AleikoumWiki

Jump to: navigation, search

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

# image format
*.png 01;36
*.jpg 01;36
*.jpeg 01;36
*.bmp 01;36
*.gif 01;36
*.PNG 01;36
*.JPG 01;36
*.JPEG 01;36
*.BMP 01;36
*.GIF 01;36
Personal tools