Skip to content

Instantly share code, notes, and snippets.

@jmorenoamor
Created March 5, 2023 10:22
Show Gist options
  • Save jmorenoamor/0f2b6cad02598d4e18bc943d35d3819e to your computer and use it in GitHub Desktop.
Save jmorenoamor/0f2b6cad02598d4e18bc943d35d3819e to your computer and use it in GitHub Desktop.
Dircolors
# .dircolors
#
# Configure your console file colors.
#
# Author: Micah Elliott http://MicahElliott.com
#
# This file should sit in your $HOME as .dircolors or .dir_colors,
# depending on your distro.
#
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
#
# IT APPEARS SUSE DOES NOT RESPECT THIS
#
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
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 xterm
TERM xterm-debian
TERM rxvt
TERM screen
TERM screen-w
TERM vt100
# 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. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.)
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
OTHER_WRITABLE 01;31 # dir that is other-writable (o+w) and not sticky
STICKY_OTHER_WRITABLE 01;31 # dir that is sticky and other-writable (+t,o+w)
STICKY 01;31 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
#EXEC 01;32 # Don't use bright green with brown background!
EXEC 01;32
# TEST_MARKER
# 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 '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 01;32 # executables (bright green)
#.exe 01;32
#.com 01;32
#.btm 01;32
#.bat 01;32
.tar 01;31 # archives or compressed (bright red)
.tgz 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 # archives or compressed (bright red)
# image formats
.jpg 01;35
.png 01;35
.gif 01;35
.bmp 01;35
.ppm 01;35
.tga 01;35
.xbm 01;35
.xpm 01;35
.tif 01;35
.png 01;35
.mpg 01;35
.avi 01;35
.fli 01;35
.gl 01;35
.dl 01;35
.svg 01;35
.ico 01;35
# C/C++ programming
.cpp 0;36
.cxx 0;36
.C 0;36
.cc 0;36
.c 0;36
.esqlc 0;36
.pgc 0;36
.pgcc 0;36
.i 0;36
.ii 0;36
.err 1;42
.h 0;36
.hxx 0;36
.H 0;36
.hh 0;36
.inc 0;36
.hpp 0;36
*tags 1;42
# Lex/Yacc
.l 1;35
.ll 1;35
.y 0;35
.yy 0;35
# Fortran
.f 0;35
.F 0;35
.for 0;35
.FOR 0;35
.f90 0;35
.F90 0;35
.ftn 0;35
.FTN 0;35
.fpp 0;35
.FPP 0;35
# Common programming languages
.java 0;35
.py 0;35
.pl 0;35
.pm 0;35
.rb 0;35
.hs 0;35
.lhs 0;35
# SQL
.sql 1;35
# Shell
.sh 1;33
.rc 1;33
.bash 1;33
.zsh 1;33
.ksh 1;33
.tcsh 1;33
.csh 1;33
.s 0;33
.t 0;33
# XML/description
.html 0;31
.xml 0;31
.css 0;31
.haml 0;31
.erb 0;31
.xml 0;31
.xslt 0;31
.tmpl 0;31
.ini 0;31
.conf 0;31
.cfg 0;31
.yml 0;31
.yaml 0;31
# Unimportant, nearly hidden.
.o 0;30
.class 0;30
.pyc 0;30
.pyo 0;30
.mod 0;30
.hsc 0;30
# Stand out!
*bug 0;41
*fix 0;44
*core 1;41
# Informational
*log 1;33
*report 1;33
*.res 1;33
*.df 1;33
# Build
*Makefile 0;31
*makefile 0;31
.mk 0;31
.gmk 0;31
*Makefile.PL 0;31
*Build.PL 0;31
# Documentation
*README 0;33
*INSTALL 0;33
*LICENSE 0;33
.mkd 0;33
.md 0;33
.markdown 0;33
.txt 0;33
.tex 0;33
.moin 0;33
.rst 0;33
# Language
.eo 38;5;255;0;48;5;34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment