User Tools

Site Tools


dotfiles:dircolors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dotfiles:dircolors [2015/01/28 12:38] – typo warnauddotfiles:dircolors [2020/12/17 05:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<code bash>
 +# 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 all
  
 +# Below, there should be one TERM entry for each termtype that is colorizable
 +TERM ansi
 +TERM color_xterm
 +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
 +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 nxterm
 +TERM putty
 +TERM rxvt
 +TERM rxvt-256color
 +TERM rxvt-cygwin
 +TERM rxvt-cygwin-native
 +TERM rxvt-unicode
 +TERM rxvt-unicode256
 +TERM rxvt-unicode-256color
 +TERM screen
 +TERM screen-256color
 +TERM screen-256color-bce
 +TERM screen-bce
 +TERM screen.linux
 +TERM screen-w
 +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
 +
 +#############################################################################
 +# 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
 +#
 +# NOTES:
 +# - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html
 +# - Color combinations
 +#   ANSI Color code       Solarized  Notes                Universal             
 +#   ~~~~~~~~~~~~~~~       ~~~~~~~~~  ~~~~~                ~~~~~~~~~             
 +#   00    none                                            NORMAL, FILE          
 +#   30    black           base02                                                
 +#   01;30 bright black    base03     bg of SolDark                              
 +#   31    red             red                             docs & mm src         
 +#   01;31 bright red      orange                          EXEC                  
 +#   32    green           green                           editable text         
 +#   01;32 bright green    base01                          unimportant text      
 +#   33    yellow          yellow     unclear in light bg  multimedia            
 +#   01;33 bright yellow   base00     fg of SolLight                             
 +#   34    blue            blue       unclear in dark bg   user customized       
 +#   01;34 bright blue     base0      fg in SolDark                              
 +#   35    magenta         magenta                         LINK                  
 +#   01;35 bright magenta  violet                          archive/compressed    
 +#   36    cyan            cyan                            DIR                   
 +#   01;36 bright cyan     base1                           unimportant non-text  
 +#   37    white           base2                                                 
 +#   01;37 bright white    base3      bg in SolLight                             
 +#   05;37;41                         unclear in Putty dark
 +
 +
 +### By file type
 +
 +# global default
 +NORMAL 00
 +# normal file
 +FILE 00
 +# directory
 +DIR 01;34
 +# symbolic link
 +LINK 01;36
 +
 +# pipe, socket, block device, character device (blue bg)
 +FIFO 30;44
 +SOCK 30;45
 +BLK  30;43
 +CHR  30;43
 +
 +
 +#############################################################################
 +### By file attributes
 +
 +# Orphaned symlinks (blinking white on red)
 +# Blink may or may not work (works on iTerm dark or light, and Putty dark)
 +#ORPHAN  05;37;41
 +# ... and the files that orphaned symlinks point to (blinking white on red)
 +MISSING 01;31
 +
 +# files with execute permission
 +EXEC 01;32  # Unix
 +#.cmd 01;31  # Win
 +#.exe 01;31  # Win
 +#.com 01;31  # Win
 +#.bat 01;31  # Win
 +#.reg 01;31  # Win
 +#.app 01;31  # OSX
 +
 +#############################################################################
 +## By extension
 +
 +# 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 '#')
 +
 +## Text that we can edit with a regular editor
 +#.txt 32
 +#.org 32
 +#.md 32
 +#.mkd 32
 +
 +## Source text
 +.h      35
 +.c      35
 +.C      35
 +.cc     35
 +.cpp    35
 +.cxx    35
 +.objc   35
 +.sh     35
 +.csh    35
 +.zsh    35
 +.el     35
 +.vim    35
 +.java   35
 +.pl     35
 +.pm     35
 +.py     35
 +.rb     35
 +.hs     35
 +.php    35
 +.htm    35
 +.html   35
 +.shtml  35
 +.xml    35
 +.rdf    35
 +.css    35
 +.js     35
 +.man    35
 +.pod    35
 +.tex    35
 +.gpi    35
 +
 +## Image
 +.bmp    32
 +.cgm    32
 +.dl     32
 +.dvi    32
 +.emf    32
 +.eps    32
 +.gif    32
 +.jpeg   32
 +.jpg    32
 +.JPG    32
 +.mng    32
 +.pbm    32
 +.pcx    32
 +.pgm    32
 +.png    32
 +.ppm    32
 +.pps    32
 +.ppsx   32
 +.ps     32
 +.svg    32
 +.svgz   32
 +.tga    32
 +.tif    32
 +.tiff   32
 +.xbm    32
 +.xcf    32
 +.xpm    32
 +.xwd    32
 +.yuv    32
 +
 +## Audio
 +.aac    33
 +.au     33
 +.flac   33
 +.mid    33
 +.midi   33
 +.mka    33
 +.mp3    33
 +.mpa    33
 +.mpeg   33
 +.mpg    33
 +.ogg    33
 +.ra     33
 +.wav    33
 +
 +## Video
 +.anx    01;33
 +.asf    01;33
 +.avi    01;33
 +.axv    01;33
 +.flc    01;33
 +.fli    01;33
 +.flv    01;33
 +.gl     01;33
 +.m2v    01;33
 +.m4v    01;33
 +.mkv    01;33
 +.mov    01;33
 +.mp4    01;33
 +.mp4v   01;33
 +.mpeg   01;33
 +.mpg    01;33
 +.nuv    01;33
 +.ogm    01;33
 +.ogv    01;33
 +.ogx    01;33
 +.qt     01;33
 +.rm     01;33
 +.rmvb   01;33
 +.swf    01;33
 +.vob    01;33
 +.wmv    01;33
 +
 +## Binary document formats and multimedia source
 +.doc    36
 +.docx   36
 +.rtf    36
 +.dot    36
 +.dotx   36
 +.xls    36
 +.xlsx   36
 +.ppt    36
 +.pptx   36
 +.fla    36
 +.psd    36
 +.pdf    36
 +.djvu   36
 +.odt    36
 +.fodt   36
 +.ods    36
 +.fods   36
 +.odp    36
 +.fodp   36
 +.odg    36
 +.fodg   36
 +.odb    36
 +.odf    36
 +
 +## Archives, compressed
 +.7z     31
 +.apk    31
 +.arj    31
 +.bin    31
 +.bz     31
 +.bz2    31
 +.cab    31  # Win
 +.deb    31
 +.dmg    31  # OSX
 +.gem    31
 +.gz     31
 +.iso    31
 +.jar    31
 +.msi    31  # Win
 +.rar    31
 +.rpm    31
 +.tar    31
 +.tbz    31
 +.tbz2   31
 +.tgz    31
 +.tx     31
 +.war    31
 +.xpi    31
 +.xz     31
 +.z      31
 +.Z      31
 +.zip    31
 +
 +## Unimportant files
 +.log    01;30
 +*~      01;30
 +*#      01;30
 +.bak    01;30
 +.BAK    01;30
 +.old    01;30
 +.OLD    01;30
 +.off    01;30
 +.OFF    01;30
 +.dist   01;30
 +.DIST   01;30
 +.orig   01;30
 +.ORIG   01;30
 +.swp    01;30
 +.swo    01;30
 +.tmp    01;30
 +.aux    01;30
 +.bbl    01;30
 +.blg    01;30
 +.toc    01;30
 +</code>