Skip to content

Instantly share code, notes, and snippets.

@jasonmorganson
Created December 14, 2022 13:23
Show Gist options
  • Save jasonmorganson/c30f15964b8a68e97bb8feb663af36bc to your computer and use it in GitHub Desktop.
Save jasonmorganson/c30f15964b8a68e97bb8feb663af36bc to your computer and use it in GitHub Desktop.
# DIRCOLOR file for the mac.
# Designed for a text on black terminal.
# Below, there should be one TERM entry for each terminal
# type that can be colored.
TERM linux
TERM linux-c
TERM mach-color
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM dtterm
TERM xterm
TERM xterm-color
TERM xterm-256color # Default for OS X 10.7
TERM xterm-debian
TERM rxvt
TERM screen
TERM screen-bce
TERM putty
TERM screen-w
TERM vt100
TERM Eterm
COLOR yes
# 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
FILE 00 # Normal file
DIR 04;40;33 # Directory (DEFAULT: 01;34 - CHANGED S.M.)
LINK 01;36 # Symbolic link.
FIFO 40;33 # Pipe
SOCK 01;35 # Socket
DOOR 01;35 # Door
BLK 40;33;01 # Block device driver
CHR 40;33;01 # Character device driver
ORPHAN 40;31;01 # Symlink to nonexistent file
# This is for files with execute permission:
EXEC 01;32
# 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 '#').
# USER DEFINED
# Archive files
.tar 01;31 # archives or compressed (bright red)
.tgz 01;31
.tar.gz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.z 01;31
.Z 01;31
.gz 01;31
.bz2 01;31
.deb 01;31
.rpm 01;31
.jar 01;31
# Images and video
.fig 01;35
.jpg 01;35
.jpeg 01;35
.gif 01;35
.bmp 01;35
.pbm 01;35
.pgm 01;35
.ppm 01;35
.tga 01;35
.xbm 01;35
.xpm 01;35
.tif 01;35
.tiff 01;35
.png 01;35
.mov 01;35
.mpg 01;35
.mpeg 01;35
.avi 01;35
.fli 01;35
.gl 01;35
.dl 01;35
.xcf 01;35
.xwd 01;35
# Audio
.ogg 01;35
.mp3 01;35
.wav 01;35
.aac 01;35
# Programming
*Makefile 01;33
.C 01;33
.cpp 01;33
.cc 01;33
.c 01;33
.for 01;33
.h 01;33
.tcl 01;33
.py 01;33
.sh 01;33
.o 33
.so 33
# Documents
*README 01;37;41
*Readme 01;37;41
*readme 01;37;41
.tex 01;37;40
.dvi 01;37;40
.ppt 01;37;40
.pptx 01;37;40
.doc 01;37;40
.docx 01;37;40
.xls 01;37;40
.xlsx 01;37;40
.ps 01;37;40
.eps 01;37;40
.pdf 01;37;40
.txt 01;37;40
.htm 01;37;40
.xml 01;37;40
.pot 01;37;40
.nb 01;37;40
# Spectra (physics stuff)
.spe 32
.spn 32
.sec 32
.asc 32
.mat 32
.spc 32
.Spc 32
.root 32
.gf2 32
.gf3 32
# Data
.dat 01;04;35
.evt 01;04;35
.bin 01;04;35
# Temporary files
*~ 36
.bak 36
.tmp 36
*# 36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment