Dircolors: updated to use bright colors

master
Pierre Neidhardt 2013-07-29 20:10:12 +02:00
parent 9f3af44837
commit 6c6ac7eca3
3 changed files with 183 additions and 180 deletions

View File

@ -3,11 +3,14 @@
## Colors for universal support
##==============================================================================
ColorReset='\e[0m'
Color_Reset='\e[0m'
## Style
ColorBold='\e[1m'
ColorUnderline='\e[4m'
Color_Bold='\e[1m'
Color_Underline='\e[4m'
Color_Blink='\e[5m'
Color_Reverse='\e[7m'
Color_Concealed='\e[8m'
## Foreground Regular
FR_Black='\e[30m'

View File

@ -1,177 +1,176 @@
# 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
## Colors codes: see colors_rc
# Filesystem
MULTIHARDLINK 01;37 # regular file with more than one link
FIFO 01;33 # pipe
## Filesystem
FIFO 1;33 # pipe
MULTIHARDLINK 1;37 # regular file with more than one link
# archives or compressed (bright red)
.tar 00;31
.tgz 00;31
.arj 00;31
.taz 00;31
.lzh 00;31
.lzma 00;31
.tlz 00;31
.txz 00;31
.zip 00;31
.z 00;31
.Z 00;31
.dz 00;31
.gz 00;31
.lz 00;31
.xz 00;31
.bz2 00;31
.bz 00;31
.tbz 00;31
.tbz2 00;31
.tz 00;31
.deb 00;31
.rpm 00;31
.jar 00;31
.war 00;31
.ear 00;31
.sar 00;31
.rar 00;31
.ace 00;31
.zoo 00;31
.cpio 00;31
.7z 00;31
.rz 00;31
## Archives or compressed (bright red)
.7z 91
.Z 91
.ace 91
.arj 91
.bz 91
.bz2 91
.cpio 91
.deb 91
.dz 91
.ear 91
.gz 91
.jar 91
.lz 91
.lzh 91
.lzma 91
.rar 91
.rpm 91
.rz 91
.sar 91
.tar 91
.taz 91
.tbz 91
.tbz2 91
.tgz 91
.tlz 91
.txz 91
.tz 91
.war 91
.xz 91
.z 91
.z 91
.zip 91
.zoo 91
# Disc image
.iso 04;31
## Disc image
.img 4;31
.iso 4;31
# image formats
.jpg 04;33
.jpeg 04;33
.gif 04;33
.bmp 04;33
.pbm 04;33
.pgm 04;33
.ppm 04;33
.tga 04;33
.xbm 04;33
.xpm 04;33
.tif 04;33
.tiff 04;33
.png 04;33
.svg 04;33
.svgz 04;33
.mng 04;33
.pcx 04;33
# Image formats (underlined yellow)
.bmp 4;33
.gif 4;33
.jpeg 4;33
.jpg 4;33
.mng 4;33
.pbm 4;33
.pcx 4;33
.pgm 4;33
.png 4;33
.ppm 4;33
.svg 4;33
.svgz 4;33
.tga 4;33
.tif 4;33
.tiff 4;33
.xbm 4;33
.xpm 4;33
# image formats UPPERCASE
.JPG 04;33
.JPEG 04;33
.GIF 04;33
.BMP 04;33
.PBM 04;33
.PGM 04;33
.PPM 04;33
.TGA 04;33
.XBM 04;33
.XPM 04;33
.TIF 04;33
.TIFF 04;33
.PNG 04;33
.SVG 04;33
.SVGZ 04;33
.MNG 04;33
.PCX 04;33
## Image formats uppercase (underlined yellow)
## We treat the special case of uppercase files since a lot of cameras save
## their file this way.
.BMP 4;33
.GIF 4;33
.JPEG 4;33
.JPG 4;33
.MNG 4;33
.PBM 4;33
.PCX 4;33
.PGM 4;33
.PNG 4;33
.PPM 4;33
.SVG 4;33
.SVGZ 4;33
.TGA 4;33
.TIF 4;33
.TIFF 4;33
.XBM 4;33
.XPM 4;33
# Documents
.pdf 00;33
.ps 00;33
.dvi 00;33
.0 00;33
.1 00;33
.2 00;33
.3 00;33
.4 00;33
.5 00;33
.6 00;33
.7 00;33
.8 00;33
.9 00;33
## Documents (yellow)
.0 33
.1 33
.2 33
.3 33
.4 33
.5 33
.6 33
.7 33
.8 33
.9 33
.dvi 33
.pdf 33
.ps 33
# videos
.mov 00;35
.mpg 00;35
.mpeg 00;35
.m2v 00;35
.mkv 00;35
.webm 00;35
.ogm 00;35
.mp4 00;35
.m4v 00;35
.mp4v 00;35
.vob 00;35
.qt 00;35
.nuv 00;35
.wmv 00;35
.asf 00;35
.rm 00;35
.rmvb 00;35
.flc 00;35
.avi 00;35
.fli 00;35
.flv 00;35
.gl 00;35
.dl 00;35
.xcf 00;35
.xwd 00;35
.yuv 00;35
.cgm 00;35
.emf 00;35
## Videos (bright magenta)
.asf 95
.avi 95
.cgm 95
.dl 95
.emf 95
.flc 95
.fli 95
.flv 95
.gl 95
.m2v 95
.m4v 95
.mkv 95
.mov 95
.mp4 95
.mp4v 95
.mpeg 95
.mpg 95
.nuv 95
.ogm 95
.qt 95
.rm 95
.rmvb 95
.vob 95
.webm 95
.wmv 95
.xcf 95
.xwd 95
.yuv 95
# audio formats
.aac 04;35
.au 04;35
.flac 04;35
.mid 04;35
.midi 04;35
.mka 04;35
.mp3 04;35
.mpc 04;35
.ogg 04;35
.ra 04;35
.wav 04;35
## Audio formats (underlined bright magenta)
.aac 4;95
.au 4;95
.flac 4;95
.mid 4;95
.midi 4;95
.mka 4;95
.mp3 4;95
.mpc 4;95
.ogg 4;95
.ra 4;95
.wav 4;95
# Text files
.txt 04;37
.log 04;37
.tex 04;37
.srt 04;37
.sub 04;37
## Text files (underlined white)
.log 4;37
.srt 4;37
.sub 4;37
.tex 4;37
.txt 4;37
# Web
.html 04;37
.htm 04;37
.css 04;37
.js 04;37
## Web (underlined white)
.css 4;37
.htm 4;37
.html 4;37
.js 4;37
# Makefile
.mk 04;36
.in 04;36
## Makefile (underlined cyan)
.in 4;36
.mk 4;36
# Prog
.lua 00;36
.py 00;36
.pl 00;36
.el 00;36
.c 00;36
.h 00;36
.cpp 00;36
.hpp 00;36
.cc 00;36
.hh 00;36
.sh 00;36
.bash 00;36
.zsh 00;36
.csh 00;36
.ksh 00;36
## Programming (cyan)
.bash 36
.c 36
.cc 36
.cpp 36
.csh 36
.el 36
.h 36
.hh 36
.hpp 36
.ksh 36
.lua 36
.pl 36
.py 36
.sh 36
.zsh 36

25
.zshrc
View File

@ -17,21 +17,22 @@ HOOK_FILE="$HOME/.shell.d/hook"
## manually to TTY.
[ -z "$DISPLAY" ] && [ -f "$HOME/.profile" ] && . "$HOME/.profile"
## Should be sourced first.
[ -f "${SHELL_DIR}/main_rc" ] && . "${SHELL_DIR}/main_rc"
[ -f "${SHELL_DIR}/options_zsh" ] && . "${SHELL_DIR}/options_zsh"
loadrc()
{
for i; do
[ -f "${SHELL_DIR}/$i" ] && . "${SHELL_DIR}/$i"
done
}
## main and options should be sourced first.
loadrc main_rc options_zsh
## Source order should not matter.
[ -f "${SHELL_DIR}/alias_rc" ] && . "${SHELL_DIR}/alias_rc"
[ -f "${SHELL_DIR}/colors_zsh" ] && . "${SHELL_DIR}/colors_zsh"
[ -f "${SHELL_DIR}/completion_rc" ] && . "${SHELL_DIR}/completion_rc"
[ -f "${SHELL_DIR}/funs_rc" ] && . "${SHELL_DIR}/funs_rc"
[ -f "${SHELL_DIR}/keys_zsh" ] && . "${SHELL_DIR}/keys_zsh"
loadrc keys_zsh
loadrc alias_rc colors_rc completion_rc funs_rc
## Should be sourced last
[ -f "$HOOK_FILE" ] && . "$HOOK_FILE"
loadrc hook
## Browser autostart. See .scripts/browser-autostart
if [ -n "$BROWSER_AUTOSTART" ]; then
browse
fi
[ -n "$BROWSER_AUTOSTART" ] && browse