# HG changeset patch # User IBBoard # Date 1490124799 0 # Node ID 3680ddae8df851f7c249153b276451f4453fafd0 # Parent 6ea4cdc0c783ebae82e1817b043c1e77789250da Alter colours, add more file types and increase clarity * Underline directories to make them stand out (bold isn't always enough) * Make sure normal files don't become unreadable in dark terminals * Darken video colour * Add colouring for code and patches * Highlight log files and certificates * "Hide" more unimportant files diff -r 6ea4cdc0c783 -r 3680ddae8df8 dircolors --- a/dircolors Mon Mar 20 21:08:32 2017 +0000 +++ b/dircolors Tue Mar 21 19:33:19 2017 +0000 @@ -63,16 +63,16 @@ # https://en.wikipedia.org/wiki/ANSI_escape_code#Colors NORMAL 00 # global default, although everything should be something. -FILE 00;38;5;236 # normal file -DIR 01;38;5;25 # directory +FILE 00 # normal file - don't colour so that it works with light and dark terminals +DIR 01;38;5;25;4 # directory LINK 00;38;5;30 # symbolic link FIFO 48;5;236;38;5;178 # pipe -SOCK 01;38;5;13 # socket -DOOR 01;38;5;13 # door +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;38;5;178;48;5;11 # ... and the files they point to +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 @@ -119,7 +119,9 @@ .xz 00;38;5;94 .7z 00;38;5;94 .jar 00;38;5;94 -.iso 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 @@ -150,32 +152,32 @@ .ico 00;38;5;98 # sound and video formats (yellow) -.aiff 00;38;5;178 -.au 00;38;5;178 -.mid 00;38;5;178 -.mp3 00;38;5;178 -.ogg 00;38;5;178 -.voc 00;38;5;178 -.wav 00;38;5;178 -.mov 00;38;5;178 -.mpg 00;38;5;178 -.mpg 00;38;5;178 -.mpeg 00;38;5;178 -.m2v 00;38;5;178 -.mkv 00;38;5;178 -.ogm 00;38;5;178 -.mp4 00;38;5;178 -.m4v 00;38;5;178 -.mp4v 00;38;5;178 -.vob 00;38;5;178 -.avi 00;38;5;178 -.webm 00;38;5;178 -.MP4 00;38;5;178 -.MPG 00;38;5;178 -.MP3 00;38;5;178 -.amr 00;38;5;178 +.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 +# Documents (blue) .html 00;38;5;69 .doc 00;38;5;69 .htm 00;38;5;69 @@ -188,30 +190,61 @@ .epub 00;38;5;69 .mobi 00;38;5;69 .odt 00;38;5;69 +.ods 00;38;5;69 .csv 00;38;5;69 - -.pdf 00;38;5;124 +.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 (not enough colours!) -#.cs 38;5;12 -#.csproj 38;5;12 -#.java 38;5;12 -#.patch 38;5;12 -#.diff 38;5;12 -#.config 38;5;12 -#.cfg 38;5;12 -#.xml 38;5;12 -#.js 38;5;12 -#.sql 38;5;12 -#.php 38;5;12 -#.css 38;5;12 -#.vala 38;5;12 -#.c 38;5;12 +# 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 -# backup files, templates, etc (white/grey - less obvious) -*~ 00;38;5;250 -.bak 00;38;5;250 -.pidb 00;38;5;250 -.mdb 00;38;5;250 -.ott 00;38;5;250 -.ots 00;38;5;250 +# 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 \ No newline at end of file