Fichero dircolors

Descripción del contenido de la página

Fichero de configuración de ls: .dircolors.

Etiquetas:
Con el fichero .dircolors es posible especificar los colores con que veremos los ficheros y directorios listados por el comando ls, tanto en función de su tipo como de su extensión.

Este es mi fichero .dircolors:

# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
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 cygwin
TERM dtterm
TERM mlterm
TERM putty
TERM xterm
TERM xterm-color
TERM xterm-debian
TERM rxvt
TERM rxvt-unicode
TERM screen
TERM screen-bce
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 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
 # numerical value, the color is as for the file pointed to.)
FIFO 40;33 # pipe
SOCK 01;35 # socket
DOOR 01;35 # door
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
#ORPHAN 40;31;01 # symlink to nonexistent file
ORPHAN 40;36;04

SETUID 37;41 # file that is setuid (u+s)
SETGID 30;43 # file that is setgid (g+s)
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
EXEC 01;32

# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:

# executables & scripts (dark green)

.sh 00;32
.pl 00;32
.PL 00;32
.py 00;32
.cmd 00;32
.exe 00;32
.com 00;32
.btm 00;32
.bat 00;32

.tar 01;31 # archives or compressed (bright red)
.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
.rar 01;31
.ace 01;31
.7z 01;31
.lha 01;31

# image formats (dark pink)
.jpg 00;35
.JPG 00;35
.jpeg 00;35
.gif 00;35
.bmp 00;35
.pbm 00;35
.pgm 00;35
.ppm 00;35
.tga 00;35
.xbm 00;35
.xpm 00;35
.tif 00;35
.tiff 00;35
.png 00;35
.mng 00;35
.psd 00;35
.pcx 00;35

# video formats (bright pink)
.mov 01;35
.mpg 01;35
.MPG 01;35
.mpeg 01;35
.avi 01;35
.AVI 01;35
.ogm 01;35
.ogv 01;35
.mp4 01;35
.mkv 01;35
.fli 01;35
.gl 01;35
.dl 01;35
.xcf 01;35
.xwd 01;35
.wmv 01;35
.smk 01;35
.qt 01;35
.asf 01;35
.wm 01;35

# audio formats (dark brown)
.flac 00;33
.fla 00;33
.mp3 00;33
.MP3 00;33
.mpc 00;33
.ogg 00;33
.wav 00;33
.pcm 00;33
.shn 00;33
.tak 00;33
.ape 00;33
.wv 00;33
.tta 00;33
.aiff 00;33
.aac 00;33
.m4a 00;33
.ra 00;33
.speex 00;33

# samples (dark white)
#.gig 00;37
#.gsi 00;37
#.nks 00;37
#.nki 00;37
#.ex2 00;37
#.exs 00;37
#.refill 00;37

# images (dark cyan)
.iso 00;36
.nrg 00;36
.cue 00;36
.ccd 00;36
.img 00;36
.mdf 00;36
.mds 00;36

# text files & documents (bright white)
.txt 01;37
.inf 01;37
.ini 01;37
.log 01;37
.LOG 01;37
.doc 01;37 # microsoft
.xls 01;37
.docx 01;37
.dot 01;37
.wps 01;37
.rtf 01;37
.odt 01;37 # opendocument
.ods 01;37
.odp 01;37
.odg 01;37
.odf 01;37
.sxw 01;37 # old openoffice
.sxc 01;37
.sxi 01;37
.sxp 01;37
.sxd 01;37
.sxm 01;37
.nfo 01;37
.diz 01;37
.pps 01;37
.ppt 01;37
.pdf 01;37
.djvu 01;37
.djv 01;37
.key 01;37
.srt 01;37 # subtitles

# source code (bright yellow)
.cpp 01;33
.CPP 01;33
.c 01;33
.h 01;33
.H 01;33
.hpp 01;33
#.py 01;33  # exe
#.pl 01;33  # exe
#.PL 01;33  # exe
.lua 01;33
.asm 01;33
.cxx 01;33
.CXX 01;33
.awk 01;33
.sed 01;33
.csv 01;33
.idl 01;33
.java 01;33
.js 01;33
.l 01;33
.ll 01;33
.mk 01;33
.PRJ 01;33
.ps 01;33
.PS 01.33
.s 01;33
.S 01;33
.sbl 01;33
.scp 01;33
.sdi 01;33
#.sh 01;33 # exe
.src 01;33
.y 01;33
.yxx 01;33