view dircolors @ 163:cfdd6905e453 default tip

Include untracked files in custom HG Prompt
author IBBoard <dev@ibboard.co.uk>
date Wed, 15 Nov 2023 19:28:45 +0000
parents 0829728189a2
children
line wrap: on
line source

# Configuration file for the color ls utility
#
# Modified by IBBoard as a combination of openSUSE, CentOS 6 and other inspiration
#
# 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 tty

# 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.
OPTIONS -F -T 0

# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM linux-c
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM gnome
TERM mach-color
TERM rxvt
TERM rxvt-unicode
TERM screen
TERM screen-w
TERM screen-256color
TERM vt100
TERM vt102
TERM xterm
TERM xterm-debian
TERM xterm-256color
TERM iterm

# 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
#
# But we're mainly using 256-colour mode: 38=foreground, 5=256-colour
# then next number is number in colour table:
# https://en.wikipedia.org/wiki/ANSI_escape_code#Colors

NORMAL 00       # global default, although everything should be something.
FILE   00       # normal file - don't colour so that it works with light and dark terminals
DIR    01;38;5;26    # directory
LINK   00;38;5;30    # symbolic link
FIFO   48;5;236;38;5;178    # pipe
SOCK   01;38;5;248;48;5;58    # socket
DOOR   01;38;5;248;48;5;58    # door
BLK    48;5;236;38;5;178;01 # block device driver
CHR    48;5;236;38;5;178;01 # character device driver
ORPHAN 48;5;236;31;01  # symlink to nonexistent file, or non-stat'able file
MISSING 01;05;38;5;178;48;5;88 # ... and the files they point to
SETUID 37;48;5;11    # file that is setuid (u+s)
SETGID 38;5;236;48;5;11    # file that is setgid (g+s)
CAPABILITY 38;5;236;43        # file with capability
STICKY_OTHER_WRITABLE 01;38;5;12;42 # dir that is sticky and other-writable (+t,o+w) - ala /tmp, and hence okay
OTHER_WRITABLE 01;31;42 # dir that is other-writable (o+w) and not sticky - 777 is bad so use red
STICKY 01;38;5;12;43    # dir with the sticky bit set (+t) and not other-writable


# This is for files with execute permission:
EXEC 00;38;5;70

# 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 '#')

# executables (green)
.cmd  00;38;5;70
.exe  00;38;5;70
.com  00;38;5;70
.bat  00;38;5;70
.btm  00;38;5;70
.dll  00;38;5;70
.sh   00;38;5;70

# archives or compressed (brown)
.tar  00;38;5;94
.tbz  00;38;5;94
.tgz  00;38;5;94
.rpm  00;38;5;94
.deb  00;38;5;94
.arj  00;38;5;94
.taz  00;38;5;94
.lzh  00;38;5;94
.lzma 00;38;5;94
.zip  00;38;5;94
.zoo  00;38;5;94
.z    00;38;5;94
.Z    00;38;5;94
.gz   00;38;5;94
.bz2  00;38;5;94
.tb2  00;38;5;94
.tz2  00;38;5;94
.tbz2 00;38;5;94
.xz   00;38;5;94
.7z   00;38;5;94
.jar  00;38;5;94
.rar  00;38;5;94
.iso  00;38;5;244
.xpi  00;38;5;166

# image formats (Tango purple-ish)
.avi  00;38;5;98
.bmp  00;38;5;98
.fli  00;38;5;98
.gif  00;38;5;98
.GIF  00;38;5;98
.jpg  00;38;5;98
.JPG  00;38;5;98
.jpeg 00;38;5;98
.mng  00;38;5;98
.pcx  00;38;5;98
.pbm  00;38;5;98
.pgm  00;38;5;98
.png  00;38;5;98
.ppm  00;38;5;98
.tga  00;38;5;98
.tif  00;38;5;98
.xbm  00;38;5;98
.xpm  00;38;5;98
.dl   00;38;5;98
.gl   00;38;5;98
.wmv  00;38;5;98
.xcf  00;38;5;98
.svg  00;38;5;98
.svgz 00;38;5;98
.psd  00;38;5;98
.ico  00;38;5;98

# sound and video formats (yellow)
.aiff 00;38;5;142
.au   00;38;5;142
.mid  00;38;5;142
.mp3  00;38;5;142
.ogg  00;38;5;142
.voc  00;38;5;142
.wav  00;38;5;142
.mov  00;38;5;142
.mpg  00;38;5;142
.mpg  00;38;5;142
.mpeg 00;38;5;142
.m2v  00;38;5;142
.mkv  00;38;5;142
.ogm  00;38;5;142
.mp4  00;38;5;142
.m4v  00;38;5;142
.mp4v 00;38;5;142
.vob  00;38;5;142
.avi  00;38;5;142
.webm 00;38;5;142
.MP4  00;38;5;142
.MPG  00;38;5;142
.MP3  00;38;5;142
.amr  00;38;5;142

# Documents (blue)
.html   00;38;5;69
.doc    00;38;5;69
.htm    00;38;5;69
.docx   00;38;5;69
.ppt    00;38;5;69
.pptx   00;38;5;69
.xls    00;38;5;69
.xlsx   00;38;5;69
.txt    00;38;5;69
.epub   00;38;5;69
.mobi   00;38;5;69
.odt    00;38;5;69
.ods    00;38;5;69
.odp    00;38;5;69
.csv    00;38;5;69
.sxw    00;38;5;69
.md     00;38;5;69
# Make PDF red, because Adobe and because they're non-editable
.pdf    00;38;5;88
# Make templates lighter
.ott    00;38;5;111
.ots    00;38;5;111

# Code (darker green than executable)
.cs     00;38;5;28
.java   00;38;5;28
.config 00;38;5;28
.conf   00;38;5;28
.cfg    00;38;5;28
.xml    00;38;5;28
.js     00;38;5;28
.sql    00;38;5;28
.php    00;38;5;28
.css    00;38;5;28
.vala   00;38;5;28
.c      00;38;5;28
.h      00;38;5;28
.m4     00;38;5;28
.am     00;38;5;28
.ac     00;38;5;28
.in     00;38;5;28
.rb     00;38;5;28
.scala  00;38;5;28
.py     00;38;5;28
.json     00;38;5;28

# Code changes (different green)
.patch  00;38;5;65
.diff   00;38;5;65

# Logs need to stand out
.log    00;38;5;160

# Security-related files in yellow
.crt    00;38;5;220
.key    00;38;5;220
.pub    00;38;5;220
.ks     00;38;5;220
.p12    00;38;5;220

# backup files, templates, and things users don't normally care about (white/grey - less obvious)
*~    00;38;5;248
.bak  00;38;5;248
.pidb 00;38;5;248
.mdb  00;38;5;248
.pdb  00;38;5;248
.orig 00;38;5;248
.old  00;38;5;248
.rej  00;38;5;248
.pyc  00;38;5;248
.ini  00;38;5;248
.xmp  00;38;5;248