Skip to content

Instantly share code, notes, and snippets.

@n8agrin
Created August 16, 2009 00:20
Show Gist options
  • Save n8agrin/168490 to your computer and use it in GitHub Desktop.
Save n8agrin/168490 to your computer and use it in GitHub Desktop.
BSD terminal coloring
# Colors
# The available color codes are:
#
# a -- black
# b -- red
# c -- green
# d -- brown
# e -- blue
# f -- magenta
# g -- cyan
# h -- light gray
# A -- bold black, usually shows up as dark gray
# B -- bold red
# C -- bold green
# D -- bold brown, usually shows up as yellow
# E -- bold blue
# F -- bold magenta
# G -- bold cyan
# H -- bold light gray; looks like bright white
# x -- default foreground or background
DIR=cx
SYM_LINK=Gx
SOCKET=Fx
PIPE=dx
EXE=Cx
BLOCK_SP=Dx
CHAR_SP=Dx
EXE_SUID=hb
EXE_GUID=ad
DIR_STICKY=fx
DIR_WO_STICKY=fx
export LSCOLORS="$DIR$SYM_LINK$SOCKET$PIPE$EXE\
$BLOCK_SP$CHAR_SP$EXE_SUID$EXE_GUID\
$DIR_STICKY$DIR_WO_STICKY"
export CLICOLOR="YES"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment