5244b2
# Configuration file for the 256color ls utility
5244b2
# This file goes in the /etc directory, and must be world readable.
5244b2
# Synchronized with coreutils 8.5 dircolors
5244b2
# You can copy this file to .dir_colors in your $HOME directory to override
5244b2
# the system defaults.
5244b2
# In the case that you are not satisfied with supplied colors, please
5244b2
# submit your color configuration or attach your file with colors readable
5244b2
# on ALL color background schemas (white,gray,black) to RedHat Bugzilla
5244b2
# ticket on https://bugzilla.redhat.com/show_bug.cgi?id=429121 . TIA.
5244b2
# Please just keep ls color conventions from 8 color scheme.
5244b2
5244b2
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
5244b2
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
5244b2
# off.
5244b2
COLOR tty
5244b2
5244b2
# Extra command line options for ls go here.
5244b2
# Basically these ones are:
5244b2
#  -F = show '/' for dirs, '*' for executables, etc.
5244b2
#  -T 0 = don't trust tab spacing when formatting ls output.
5244b2
OPTIONS -F -T 0
5244b2
5244b2
# Below, there should be one TERM entry for each termtype that is colorizable
5244b2
TERM putty-256color
5244b2
TERM rxvt-256color
5244b2
TERM rxvt-unicode-256color
5244b2
TERM rxvt-unicode256
5244b2
TERM screen-256color
5244b2
TERM xterm-256color
5244b2
TERM gnome-256color
5244b2
TERM st-256color
5244b2
5244b2
# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
5244b2
EIGHTBIT 1
5244b2
5244b2
# Below are the color init strings for the basic file types. A color init
5244b2
# string consists of one or more of the following numeric codes:
5244b2
# Attribute codes:
5244b2
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
5244b2
# Text color(8 colors mode) codes:
5244b2
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
5244b2
# Background color(8 colors mode) codes:
5244b2
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
5244b2
# Text color(256 colors mode) codes:
5244b2
# Valid syntax for text 256color is 38;5;<color number> , where color number
5244b2
# is number between 0 and 255.
5244b2
# You may find following command useful to search the best one for you:
5244b2
# for ((x=0; x<=255; x++));do echo -e "${x}:\033[38;5;${x}mcolor\033[000m";done
5244b2
# Background color(256 colors mode) codes:
5244b2
# Valid syntax for background 256color is 48;5;<color number> , where
5244b2
# color number is number between 0 and 255.
5244b2
# You may find following command useful to search the best one for you:
5244b2
# for ((x=0; x<=255; x++));do echo -e "${x}:\033[48;5;${x}mcolor\033[000m";done
5244b2
5244b2
#NORMAL 00	# global default, no color code at all
5244b2
#FILE 00	# normal file, use no color at all
5244b2
RESET 0 # reset to "normal" color
5244b2
DIR 38;5;27	# directory
5244b2
LINK 38;5;51	# symbolic link (If you set this to 'target' instead of a
5244b2
		# numerical value, the color is as for the file pointed to.)
5244b2
MULTIHARDLINK 44;38;5;15 # regular file with more than one link
5244b2
FIFO 40;38;5;11	# pipe
5244b2
SOCK 38;5;13	# socket
5244b2
DOOR 38;5;5	# door
5244b2
BLK 48;5;232;38;5;11	# block device driver
5244b2
CHR 48;5;232;38;5;3	# character device driver
5244b2
ORPHAN 48;5;232;38;5;9  # symlink to nonexistent file, or non-stat'able file
5244b2
MISSING 05;48;5;232;38;5;15 # ... and the files they point to
5244b2
SETUID 48;5;196;38;5;15	# file that is setuid (u+s)
5244b2
SETGID 48;5;11;38;5;16	# file that is setgid (g+s)
5244b2
CAPABILITY 48;5;196;38;5;226	# file with capability
5244b2
STICKY_OTHER_WRITABLE 48;5;10;38;5;16 # dir that is sticky and other-writable (+t,o+w)
5244b2
OTHER_WRITABLE 48;5;10;38;5;21 # dir that is other-writable (o+w) and not sticky
5244b2
STICKY 48;5;21;38;5;15	# dir with the sticky bit set (+t) and not other-writable
5244b2
5244b2
# This is for files with execute permission:
5244b2
EXEC 38;5;34
5244b2
5244b2
# List any file extensions like '.gz' or '.tar' that you would like ls
5244b2
# to colorize below. Put the extension, a space, and the color init string.
5244b2
# (and any comments you want to add after a '#')
5244b2
# executables (bright green)
5244b2
#.cmd 38;5;34
5244b2
#.exe 38;5;34
5244b2
#.com 38;5;34
5244b2
#.btm 38;5;34
5244b2
#.bat 38;5;34
5244b2
#.sh  38;5;34
5244b2
#.csh 38;5;34
5244b2
5244b2
# archives or compressed (bright red)
5244b2
.tar 38;5;9
5244b2
.tgz 38;5;9
5244b2
.arc 38;5;9
5244b2
.arj 38;5;9
5244b2
.taz 38;5;9
5244b2
.lha 38;5;9
5244b2
.lz4 38;5;9
5244b2
.lzh 38;5;9
5244b2
.lzma 38;5;9
5244b2
.tlz 38;5;9
5244b2
.txz 38;5;9
5244b2
.tzo 38;5;9
5244b2
.t7z 38;5;9
5244b2
.zip 38;5;9
5244b2
.z   38;5;9
5244b2
.Z   38;5;9
5244b2
.dz  38;5;9
5244b2
.gz  38;5;9
5244b2
.lrz 38;5;9
5244b2
.lz  38;5;9
5244b2
.lzo 38;5;9
5244b2
.xz  38;5;9
5244b2
.bz2 38;5;9
5244b2
.bz  38;5;9
5244b2
.tbz 38;5;9
5244b2
.tbz2 38;5;9
5244b2
.tz  38;5;9
5244b2
.deb 38;5;9
5244b2
.rpm 38;5;9
5244b2
.jar 38;5;9
5244b2
.war 38;5;9
5244b2
.ear 38;5;9
5244b2
.sar 38;5;9
5244b2
.rar 38;5;9
5244b2
.alz 38;5;9
5244b2
.ace 38;5;9
5244b2
.zoo 38;5;9
5244b2
.cpio 38;5;9
5244b2
.7z  38;5;9
5244b2
.rz  38;5;9
5244b2
.cab 38;5;9
5244b2
5244b2
# image formats (magenta)
5244b2
.jpg 38;5;13
5244b2
.jpeg 38;5;13
5244b2
.gif 38;5;13
5244b2
.bmp 38;5;13
5244b2
.pbm 38;5;13
5244b2
.pgm 38;5;13
5244b2
.ppm 38;5;13
5244b2
.tga 38;5;13
5244b2
.xbm 38;5;13
5244b2
.xpm 38;5;13
5244b2
.tif 38;5;13
5244b2
.tiff 38;5;13
5244b2
.png 38;5;13
5244b2
.svg 38;5;13
5244b2
.svgz 38;5;13
5244b2
.mng 38;5;13
5244b2
.pcx 38;5;13
5244b2
.mov 38;5;13
5244b2
.mpg 38;5;13
5244b2
.mpeg 38;5;13
5244b2
.m2v 38;5;13
5244b2
.mkv 38;5;13
5244b2
.webm 38;5;13
5244b2
.ogm 38;5;13
5244b2
.mp4 38;5;13
5244b2
.m4v 38;5;13
5244b2
.mp4v 38;5;13
5244b2
.vob 38;5;13
5244b2
.qt  38;5;13
5244b2
.nuv 38;5;13
5244b2
.wmv 38;5;13
5244b2
.asf 38;5;13
5244b2
.rm  38;5;13
5244b2
.rmvb 38;5;13
5244b2
.flc 38;5;13
5244b2
.avi 38;5;13
5244b2
.fli 38;5;13
5244b2
.flv 38;5;13
5244b2
.gl 38;5;13
5244b2
.dl 38;5;13
5244b2
.xcf 38;5;13
5244b2
.xwd 38;5;13
5244b2
.yuv 38;5;13
5244b2
.cgm 38;5;13
5244b2
.emf 38;5;13
5244b2
5244b2
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
5244b2
.axv 38;5;13
5244b2
.anx 38;5;13
5244b2
.ogv 38;5;13
5244b2
.ogx 38;5;13
5244b2
5244b2
# audio formats (cyan)
5244b2
.aac 38;5;45
5244b2
.au 38;5;45
5244b2
.flac 38;5;45
5244b2
.mid 38;5;45
5244b2
.midi 38;5;45
5244b2
.mka 38;5;45
5244b2
.mp3 38;5;45
5244b2
.mpc 38;5;45
5244b2
.ogg 38;5;45
5244b2
.ra 38;5;45
5244b2
.wav 38;5;45
5244b2
5244b2
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
5244b2
.axa 38;5;45
5244b2
.oga 38;5;45
5244b2
.spx 38;5;45
5244b2
.xspf 38;5;45
5244b2
5244b2
# colorize binary documents (brown)
5244b2
#.pdf 00;33
5244b2
#.ps 00;33
5244b2
#.ps.gz 00;33
5244b2
#.tex 00;33
5244b2
#.xls 00;33
5244b2
#.xlsx 00;33
5244b2
#.ppt 00;33
5244b2
#.pptx 00;33
5244b2
#.rtf 00;33
5244b2
#.doc 00;33
5244b2
#.docx 00;33
5244b2
#.odt 00;33
5244b2
#.ods 00;33
5244b2
#.odp 00;33
5244b2
#.epub 00;33
5244b2
#.abw 00;33
5244b2
#.wpd 00;33
5244b2
#
5244b2
# colorize text documents (brown)
5244b2
#.txt 00;33
5244b2
#.patch 00;33
5244b2
#.diff 00;33
5244b2
#.log 00;33
5244b2
#.htm 00;33
5244b2
#.html 00;33
5244b2
#.shtml 00;33
5244b2
#.xml 00;33