# -*- shell-script -*- # Joerg Arndt's .jjdircolors # ... online at http://www.jjj.de/ # your feedback is welcome mailto: arndt (AT) jjj.de # version: 2023-July-23 (08:18) # Configuration file for the color ls utility # 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 -s -T 0 OPTIONS -F -T 0 # Below, there should be one TERM entry for each termtype that is colorizable. # Taken from dircolors --print-database TERM Eterm TERM ansi TERM color-xterm TERM con132x25 TERM con132x30 TERM con132x43 TERM con132x60 TERM con80x25 TERM con80x28 TERM con80x30 TERM con80x43 TERM con80x50 TERM con80x60 TERM cons25 TERM console TERM cygwin TERM dtterm TERM eterm-color TERM gnome TERM gnome-256color TERM jfbterm TERM konsole TERM kterm TERM linux TERM linux-c TERM mach-color TERM mlterm TERM putty TERM rxvt TERM rxvt-cygwin TERM rxvt-cygwin-native TERM rxvt-unicode TERM screen TERM screen-256color TERM screen-bce TERM screen-w TERM screen.linux TERM vt100 TERM xterm TERM xterm-16color TERM xterm-256color TERM xterm-88color TERM xterm-color TERM xterm-debian # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) EIGHTBIT 1 ######### List of colors: # Black 0;30 Dark Gray 1;30 # Blue 0;34 Light Blue 1;34 # Green 0;32 Light Green 1;32 # Cyan 0;36 Light Cyan 1;36 # Red 0;31 Light Red 1;31 # Purple 0;35 Light Purple 1;35 # Brown 0;33 Yellow 1;33 # Light Gray 0;37 White 1;37 ######### # 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 #DIR 00;34 # directory DIR 01;34 # directory # for putty with dark background LINK 00 # symbolic link FIFO 40;33 # pipe SOCK 01;35 # socket BLK 40;33;01 # block device driver CHR 40;33;01 # character device driver ORPHAN 41;42 # orphanned symbolic link # This is for files with execute permission: EXEC 01;31 # 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 '#') # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white ## archives or compressed (red) ## .rpm 00;31 .tar 00;31 .tgz 00;31 #.tbz 00;31 .arj 00;31 #.taz 00;31 .lzh 00;31 .lha 00;31 .rar 00;31 .arc 00;31 .zoo 00;31 .zip 00;31 .z 00;31 .Z 00;31 .gz 00;31 .bz2 00;31 .xz 00;31 .hqx 00;31 ## image formats: (magenta) ## .webp 00;35 .png 00;35 .pbm 00;35 .ppm 00;35 .pgm 00;35 .rpbm 00;35 .rppm 00;35 .rpgm 00;35 .svg 00;35 .xbm 00;35 .xpm 00;35 .fig 00;32 .jpeg 00;35 .jpg 00;35 .jp2 00;35 .gif 00;35 .pcx 00;35 .bmp 00;35 .tga 00;35 .rgb 00;35 .rgba 00;35 .tiff 00;35 .tif 00;35 .pic 00;35 .pict 00;35 .pix 00;35 .xwd 00;35 .ico 00;35 ## movies: (bright magenta) ## .mpeg 01;35 .mpg 01;35 .mp4 01;35 .mng 01;35 .avi 01;35 .fli 01;35 .mov 01;35 .divx 01;35 .m4v 01;35 ## sound (bright magenta) ## .wav 01;35 .au 01;35 .snd 01;35 .mod 01;35 .mp3 01;35 .ogg 01;35 #.ram 01;35 #.voc 01;35 ## text & tex: (green) ## .txt 00;32 .TXT 00;32 #.doc 00;32 .tex 00;32 .ptx 00;32 # plain tex #.tei 00;32 # tex include .readme 00;32 .README 00;32 .me 00;32 # read.me .1st 00;32 # readme.1st #.phtml 00;32 .html 00;32 .htm 00;32 .info 00;32 .nfo 00;32 .texi 00;32 .txi 00;32 .dif 00;32 .diff 00;32 ## text stuff that needs a viewer: ## # using 00;36 (cyan) and 01;30 (bright black) .dvi 01;30 .pdf 01;30 .PDF 01;30 .ps 01;30 .eps 01;30 .djvu 01;30 .chm 01;30 .epub 01;30 .rtf 01;30 #.sdw 00;36 # star office #.ax 00;36 # applix .odt 00;36 .ods 00;36 .ppt 00;36 .pptx 00;36 .xls 00;36 .xlsx 00;36 .doc 00;36 .docx 00;36 .docm 00;36 .dot 00;36 .dotx 00;36 ## man pages: #.0 01;32 #.1 01;32 #.2 01;32 #.3 01;32 #.4 01;32 #.5 01;32 #.6 01;32 #.7 01;32 #.8 01;32 #.9 01;32 ## misc: (cyan) ## .lsm 00;36 ## linux software map .a 00;36 ## static library .bin 00;36 ## binary .iso 00;36 ## cd image .spec 00;36 ## rpm's spec file ## code: (bright/bold) ## .f 01 .for 01 .el 01 .c 01 .cc 01 .cpp 01 .cxx 01 .inc 01 .h 01 .hh 01 .hxx 01 .pas 01 .java 01 .maple 01 .mu 01 ## mupad scripts .gp 01 ## pari/gp scripts .gpi 01 ## pari/gp include files .sh 01 ## shell scripts .zsh 01 ## shell scripts .pl 01 ## perl .rb 01 ## ruby .py 01 ## python .sage 01 ## sage ## end of file