diff -r a906009be2b1 -r e1da4a7a9e92 zshrc.d/15-colors.zrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zshrc.d/15-colors.zrc Sun Jul 15 15:57:45 2012 +0200 @@ -0,0 +1,16 @@ + +# You can customize ls colors by generating the file /etc/LS_COLORS +# (using "dircolors --print-database > /etc/LS_COLORS") and +# updating it. +# Check 'man dircolors' for more information. +# Thanks to Antoine Vouillon and Farzad Farid. + +if [[ -x /usr/bin/dircolors ]]; then + if [[ -e /etc/LS_COLORS ]]; then + eval $(dircolors -b /etc/LS_COLORS) + else + eval $(dircolors -b) + fi + LS_OPTIONS=(--color=auto) + export LS_OPTIONS +fi