Mercurial > repos > other > linux
view dircolors @ 40:7af4ce187680
Start to work with 256-colour terminal highlighting in "ls"
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 20 Mar 2017 21:07:16 +0000 |
parents | 281a9cb03796 |
children | 3680ddae8df8 |
line wrap: on
line source
# Configuration file for the color ls utility # # Modified by IBBoard as a combination of openSUSE, CentOS 6 and other inspiration # # This file goes in the /etc directory, and must be world readable. # You can copy this file to .dir_colors in your $HOME directory to override # the system defaults. # COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not # pipes. 'all' adds color characters to all output. 'none' shuts colorization # off. COLOR tty # Extra command line options for ls go here. # Basically these ones are: # -F = show '/' for dirs, '*' for executables, etc. # -T 0 = don't trust tab spacing when formatting ls output. OPTIONS -F -T 0 # Below, there should be one TERM entry for each termtype that is colorizable TERM linux TERM linux-c TERM console TERM con132x25 TERM con132x30 TERM con132x43 TERM con132x60 TERM con80x25 TERM con80x28 TERM con80x30 TERM con80x43 TERM con80x50 TERM con80x60 TERM gnome TERM mach-color TERM rxvt TERM rxvt-unicode TERM screen TERM screen-w TERM screen-256color TERM vt100 TERM vt102 TERM xterm TERM xterm-debian TERM xterm-256color TERM iterm # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) EIGHTBIT 1 # 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 # # But we're mainly using 256-colour mode: 38=foreground, 5=256-colour # then next number is number in colour table: # https://en.wikipedia.org/wiki/ANSI_escape_code#Colors NORMAL 00 # global default, although everything should be something. FILE 00;38;5;236 # normal file DIR 01;38;5;25 # directory LINK 00;38;5;30 # symbolic link FIFO 48;5;236;38;5;178 # pipe SOCK 01;38;5;13 # socket DOOR 01;38;5;13 # door BLK 48;5;236;38;5;178;01 # block device driver CHR 48;5;236;38;5;178;01 # character device driver ORPHAN 48;5;236;31;01 # symlink to nonexistent file, or non-stat'able file MISSING 01;38;5;178;48;5;11 # ... and the files they point to SETUID 37;48;5;11 # file that is setuid (u+s) SETGID 38;5;236;48;5;11 # file that is setgid (g+s) CAPABILITY 38;5;236;43 # file with capability STICKY_OTHER_WRITABLE 01;38;5;12;42 # dir that is sticky and other-writable (+t,o+w) - ala /tmp, and hence okay OTHER_WRITABLE 01;31;42 # dir that is other-writable (o+w) and not sticky - 777 is bad so use red STICKY 01;38;5;12;43 # dir with the sticky bit set (+t) and not other-writable # This is for files with execute permission: EXEC 00;38;5;70 # 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 '#') # executables (green) .cmd 00;38;5;70 .exe 00;38;5;70 .com 00;38;5;70 .bat 00;38;5;70 .btm 00;38;5;70 .dll 00;38;5;70 .sh 00;38;5;70 # archives or compressed (brown) .tar 00;38;5;94 .tbz 00;38;5;94 .tgz 00;38;5;94 .rpm 00;38;5;94 .deb 00;38;5;94 .arj 00;38;5;94 .taz 00;38;5;94 .lzh 00;38;5;94 .lzma 00;38;5;94 .zip 00;38;5;94 .zoo 00;38;5;94 .z 00;38;5;94 .Z 00;38;5;94 .gz 00;38;5;94 .bz2 00;38;5;94 .tb2 00;38;5;94 .tz2 00;38;5;94 .tbz2 00;38;5;94 .xz 00;38;5;94 .7z 00;38;5;94 .jar 00;38;5;94 .iso 00;38;5;94 # image formats (Tango purple-ish) .avi 00;38;5;98 .bmp 00;38;5;98 .fli 00;38;5;98 .gif 00;38;5;98 .GIF 00;38;5;98 .jpg 00;38;5;98 .JPG 00;38;5;98 .jpeg 00;38;5;98 .mng 00;38;5;98 .pcx 00;38;5;98 .pbm 00;38;5;98 .pgm 00;38;5;98 .png 00;38;5;98 .ppm 00;38;5;98 .tga 00;38;5;98 .tif 00;38;5;98 .xbm 00;38;5;98 .xpm 00;38;5;98 .dl 00;38;5;98 .gl 00;38;5;98 .wmv 00;38;5;98 .xcf 00;38;5;98 .svg 00;38;5;98 .svgz 00;38;5;98 .psd 00;38;5;98 .ico 00;38;5;98 # sound and video formats (yellow) .aiff 00;38;5;178 .au 00;38;5;178 .mid 00;38;5;178 .mp3 00;38;5;178 .ogg 00;38;5;178 .voc 00;38;5;178 .wav 00;38;5;178 .mov 00;38;5;178 .mpg 00;38;5;178 .mpg 00;38;5;178 .mpeg 00;38;5;178 .m2v 00;38;5;178 .mkv 00;38;5;178 .ogm 00;38;5;178 .mp4 00;38;5;178 .m4v 00;38;5;178 .mp4v 00;38;5;178 .vob 00;38;5;178 .avi 00;38;5;178 .webm 00;38;5;178 .MP4 00;38;5;178 .MPG 00;38;5;178 .MP3 00;38;5;178 .amr 00;38;5;178 # Documents .html 00;38;5;69 .doc 00;38;5;69 .htm 00;38;5;69 .docx 00;38;5;69 .ppt 00;38;5;69 .pptx 00;38;5;69 .xsl 00;38;5;69 .xslx 00;38;5;69 .txt 00;38;5;69 .epub 00;38;5;69 .mobi 00;38;5;69 .odt 00;38;5;69 .csv 00;38;5;69 .pdf 00;38;5;124 # Code (not enough colours!) #.cs 38;5;12 #.csproj 38;5;12 #.java 38;5;12 #.patch 38;5;12 #.diff 38;5;12 #.config 38;5;12 #.cfg 38;5;12 #.xml 38;5;12 #.js 38;5;12 #.sql 38;5;12 #.php 38;5;12 #.css 38;5;12 #.vala 38;5;12 #.c 38;5;12 # backup files, templates, etc (white/grey - less obvious) *~ 00;38;5;250 .bak 00;38;5;250 .pidb 00;38;5;250 .mdb 00;38;5;250 .ott 00;38;5;250 .ots 00;38;5;250