Skip to content

Instantly share code, notes, and snippets.

@ggl
Last active January 19, 2024 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggl/26857f47b322a4cbe31a80efe95d9729 to your computer and use it in GitHub Desktop.
Save ggl/26857f47b322a4cbe31a80efe95d9729 to your computer and use it in GitHub Desktop.
Color scheme for ls
# Configuration file for the color ls utility
# 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 all
# 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.
# -b = better support for special characters
# OPTIONS -b -T 0 -X
# Below, there should be one TERM entry for each termtype that is colorizable
#
TERM linux
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM xterm
TERM xterm-256color
TERM rxvt
TERM rxvt-unicode
TERM vt100
TERM ansi
# 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
#
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # 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 01;05;36 # orphaned syminks
# This is for files with execute permission:
EXEC 01;32
# executable stuff
.cmd 01;32
.exe 01;32
.com 01;32
.btm 01;32
# archives or compressed files
.tar 01;31
.tgz 01;31
.taz 01;31
.tbz 01;31
.tbz2 01;31
.txz 01;31
.tlz 01;31
.z 01;31
.Z 01;31
.gz 01;31
.bz 01;31
.bz2 01;31
.br 01;31
.xz 01;31
.lz 01;31
.zst 01;31
.lzma 01;31
.lzh 01;31
.lha 01;31
.zip 01;31
.arj 01;31
.rar 01;31
.jar 01;31
.7z 01;31
.dar 01;31
.ace 01;31
.rpm 01;31
.deb 01;31
.slp 01;31
.lrp 01;31
# image files
.jpg 01;35
.jpeg 01;35
.gif 01;35
.bmp 01;35
.xbm 01;35
.xpm 01;35
.xwd 01;35
.tif 01;35
.tiff 01;35
.tga 01;35
.pbm 01;35
.pgm 01;35
.ppm 01;35
.ppm 01;35
.xcf 01;35
.svg 01;35
.png 01;35
.ans 01;35
.dng 01;35
.nef 01;35
.cr2 01;35
.rw2 01;35
# audio, video
.mp3 00;35
.mp4 00;35
.m4a 00;35
.mka 00;35
.ogg 00;35
.oga 00;35
.spx 00;35
.aac 00;35
.wma 00;35
.mpc 00;35
.wav 00;35
.aif 00;35
.aiff 00;35
.flac 00;35
.opus 00;35
.ape 00;35
.mid 00;35
.avi 00;35
.mpg 00;35
.mpeg 00;35
.ogv 00;35
.m4v 00;35
.mkv 00;35
.wmv 00;35
.mov 00;35
.fli 00;35
.flv 00;35
.swf 00;35
# encrypted filees
.nc 00;31
.pgp 00;31
.gpg 00;31
# readmes, logs, various text files
.txt 00;33
.asc 00;33
.diz 00;33
.lsm 00;33
.pod 00;33
.readme 00;33
.me 00;33
.adoc 00;33
.md 00;33
.org 00;33
.rst 00;33
.tex 00;33
.log 00;33
.hlp 00;33
.help 00;33
.example 00;33
.eg 00;33
.sample 00;33
.motd 00;33
.html 00;33
.htm 00;33
.css 00;33
.csv 00;33
.tsv 00;33
.xml 00;33
.yaml 00;33
.yml 00;33
.json 00;33
.geojson 00;33
.topojson 00;33
.kml 00;33
.gpx 00;33
.notes 00;33
.md5 00;33
.md5sum 00;33
.pem 00;33
.crt 00;33
.csr 00;33
# documents, spreadsheets
.doc 00;33
.docx 00;33
.dot 00;33
.xls 00;33
.xlsx 00;33
.odt 00;33
.ods 00;33
.ott 00;33
.pdf 00;33
.ps 00;33
.djvu 00;33
.djv 00;33
.mobi 00;33
.epub 00;33
.prc 00;33
.azw 00;33
# config files and stuff
.config 00;36
.conf 00;36
.cf 00;36
.cfg 00;36
.defs 00;36
.rc 00;36
.dcf 00;36
.ini 00;36
# scripting langs, source code, etc.
.c 00;32
.cpp 00;32
.C 00;32
.h 00;32
.d 00;32
.rs 00;32
.go 00;32
.cr 00;32
.zig 00;32
.sh 00;32
.ksh 00;32
.csh 00;32
.cgi 00;32
.dart 00;32
.fnl 00;32
.lua 00;32
.js 00;32
.ts 00;33
.jl 00;32
.pl 00;32
.pm 00;32
.raku 00;32
.rakumod 00;32
.py 00;32
.rb 00;32
.el 00;32
.rkt 00;32
.scm 00;32
.ss 00;33
.tcl 00;32
.bas 00;32
.bat 00;32
.java 00;32
.class 00;32
.clj 00;32
.awk 00;32
.php3 00;32
.php4 00;32
.php 00;32
.sql 00;32
# libs, objects
.a 00;32
.o 00;32
.so 00;32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment