commit
b2a55364c5
158
LS_COLORS
158
LS_COLORS
|
@ -42,7 +42,7 @@ EXEC 38;5;208;1
|
||||||
FIFO 38;5;126
|
FIFO 38;5;126
|
||||||
FILE 38;5;253
|
FILE 38;5;253
|
||||||
LINK target
|
LINK target
|
||||||
MULTIHARDLINK 38;5;220;1
|
MULTIHARDLINK 38;5;222;1
|
||||||
# "NORMAL don't reset the bold attribute -
|
# "NORMAL don't reset the bold attribute -
|
||||||
# https://github.com/trapd00r/LS_COLORS/issues/11
|
# https://github.com/trapd00r/LS_COLORS/issues/11
|
||||||
#NORMAL 38;5;254
|
#NORMAL 38;5;254
|
||||||
|
@ -58,7 +58,12 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
# }}}
|
# }}}
|
||||||
# documents {{{1
|
# documents {{{1
|
||||||
*README 38;5;220;1
|
*README 38;5;220;1
|
||||||
|
*LICENSE 38;5;220;1
|
||||||
|
*COPYRIGHT 38;5;220;1
|
||||||
|
*AUTHORS 38;5;220;1
|
||||||
|
*HISTORY 38;5;220;1
|
||||||
.log 38;5;190
|
.log 38;5;190
|
||||||
|
.description 1
|
||||||
# plain-text {{{2
|
# plain-text {{{2
|
||||||
.txt 38;5;253
|
.txt 38;5;253
|
||||||
# markup {{{2
|
# markup {{{2
|
||||||
|
@ -71,9 +76,11 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.tex 38;5;184
|
.tex 38;5;184
|
||||||
.textile 38;5;184
|
.textile 38;5;184
|
||||||
# key-value, non-relational data {{{2
|
# key-value, non-relational data {{{2
|
||||||
.xml 38;5;199
|
.msg 38;5;178
|
||||||
.json 38;5;199
|
.pgn 38;5;178
|
||||||
.yml 38;5;199
|
.xml 38;5;178
|
||||||
|
.json 38;5;178
|
||||||
|
.yml 38;5;178
|
||||||
# }}}
|
# }}}
|
||||||
# binary {{{2
|
# binary {{{2
|
||||||
.cbr 38;5;141
|
.cbr 38;5;141
|
||||||
|
@ -84,6 +91,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.PDF 38;5;141
|
.PDF 38;5;141
|
||||||
# words {{{3
|
# words {{{3
|
||||||
.docm 38;5;111;4
|
.docm 38;5;111;4
|
||||||
|
.doc 38;5;111
|
||||||
.docx 38;5;111
|
.docx 38;5;111
|
||||||
.eps 38;5;111
|
.eps 38;5;111
|
||||||
.odb 38;5;111
|
.odb 38;5;111
|
||||||
|
@ -98,6 +106,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.ods 38;5;112
|
.ods 38;5;112
|
||||||
.xla 38;5;76
|
.xla 38;5;76
|
||||||
# Excel spreadsheet
|
# Excel spreadsheet
|
||||||
|
.xls 38;5;112
|
||||||
.xlsx 38;5;112
|
.xlsx 38;5;112
|
||||||
# Excel spreadsheet with macros
|
# Excel spreadsheet with macros
|
||||||
.xlsxm 38;5;112;4
|
.xlsxm 38;5;112;4
|
||||||
|
@ -201,6 +210,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.htm 38;5;125;1
|
.htm 38;5;125;1
|
||||||
.html 38;5;125;1
|
.html 38;5;125;1
|
||||||
.jhtm 38;5;125;1
|
.jhtm 38;5;125;1
|
||||||
|
.mht 38;5;125;1
|
||||||
# }}}
|
# }}}
|
||||||
# java {{{2
|
# java {{{2
|
||||||
.coffee 38;5;074;1
|
.coffee 38;5;074;1
|
||||||
|
@ -223,7 +233,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.am 38;5;242
|
.am 38;5;242
|
||||||
.in 38;5;242
|
.in 38;5;242
|
||||||
.old 38;5;242
|
.old 38;5;242
|
||||||
.out 38;5;46;1
|
.out 38;5;242
|
||||||
.SKIP 38;5;244
|
.SKIP 38;5;244
|
||||||
# }}}
|
# }}}
|
||||||
# patch files {{{2
|
# patch files {{{2
|
||||||
|
@ -249,6 +259,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.divx 38;5;114
|
.divx 38;5;114
|
||||||
.IFO 38;5;114
|
.IFO 38;5;114
|
||||||
.m2v 38;5;114
|
.m2v 38;5;114
|
||||||
|
.m4v 38;5;114
|
||||||
.mkv 38;5;114
|
.mkv 38;5;114
|
||||||
.MOV 38;5;114
|
.MOV 38;5;114
|
||||||
.mov 38;5;114
|
.mov 38;5;114
|
||||||
|
@ -304,6 +315,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.pfb 38;5;66
|
.pfb 38;5;66
|
||||||
.pfm 38;5;66
|
.pfm 38;5;66
|
||||||
.ttf 38;5;66
|
.ttf 38;5;66
|
||||||
|
.otf 38;5;66
|
||||||
# postscript fonts
|
# postscript fonts
|
||||||
.PFA 38;5;66
|
.PFA 38;5;66
|
||||||
.pfa 38;5;66
|
.pfa 38;5;66
|
||||||
|
@ -325,6 +337,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.jad 38;5;215
|
.jad 38;5;215
|
||||||
.jar 38;5;215
|
.jar 38;5;215
|
||||||
.cab 38;5;215
|
.cab 38;5;215
|
||||||
|
.pak 38;5;215
|
||||||
.vdf 38;5;215
|
.vdf 38;5;215
|
||||||
.vpk 38;5;215
|
.vpk 38;5;215
|
||||||
.bsp 38;5;215
|
.bsp 38;5;215
|
||||||
|
@ -480,10 +493,14 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
# state files
|
# state files
|
||||||
.pid 38;5;248
|
.pid 38;5;248
|
||||||
.state 38;5;248
|
.state 38;5;248
|
||||||
# state dumps
|
*lockfile 38;5;248
|
||||||
.dump 38;5;241
|
# error logs
|
||||||
.err 38;5;160;1
|
.err 38;5;160;1
|
||||||
.error 38;5;160;1
|
.error 38;5;160;1
|
||||||
|
.stderr 38;5;160;1
|
||||||
|
# state dumps
|
||||||
|
.dump 38;5;241
|
||||||
|
.stackdump 38;5;241
|
||||||
.zcompdump 38;5;241
|
.zcompdump 38;5;241
|
||||||
.zwc 38;5;241
|
.zwc 38;5;241
|
||||||
# tcpdump, network traffic capture
|
# tcpdump, network traffic capture
|
||||||
|
@ -532,82 +549,85 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||||
.enc 38;5;192;3
|
.enc 38;5;192;3
|
||||||
# }}}
|
# }}}
|
||||||
# emulators {{{1
|
# emulators {{{1
|
||||||
.32x 38;5;137
|
.32x 38;5;213
|
||||||
.cdi 38;5;124
|
.cdi 38;5;213
|
||||||
.fm2 38;5;35
|
.fm2 38;5;213
|
||||||
.rom 38;5;59;1
|
.rom 38;5;213
|
||||||
.sav 38;5;220
|
.sav 38;5;213
|
||||||
.st 38;5;208;1
|
.st 38;5;213
|
||||||
# atari
|
# atari
|
||||||
.a00 38;5;11
|
.a00 38;5;213
|
||||||
.a52 38;5;112
|
.a52 38;5;213
|
||||||
.A64 38;5;82
|
.A64 38;5;213
|
||||||
.a64 38;5;82
|
.a64 38;5;213
|
||||||
.a78 38;5;112
|
.a78 38;5;213
|
||||||
.adf 38;5;35
|
.adf 38;5;213
|
||||||
.atr 38;5;213
|
.atr 38;5;213
|
||||||
# nintendo
|
# nintendo
|
||||||
.gb 38;5;203
|
.gb 38;5;213
|
||||||
.gba 38;5;205
|
.gba 38;5;213
|
||||||
.gbc 38;5;204
|
.gbc 38;5;213
|
||||||
.gel 38;5;83
|
.gel 38;5;213
|
||||||
.gg 38;5;138
|
.gg 38;5;213
|
||||||
.ggl 38;5;83
|
.ggl 38;5;213
|
||||||
.ipk 38;5;117 # Nintendo (DS Packed Images)
|
.ipk 38;5;213 # Nintendo (DS Packed Images)
|
||||||
.j64 38;5;102
|
.j64 38;5;213
|
||||||
.nds 38;5;193
|
.nds 38;5;213
|
||||||
.nes 38;5;160
|
.nes 38;5;213
|
||||||
# Sega
|
# Sega
|
||||||
.sms 38;5;33
|
.sms 38;5;213
|
||||||
# }}}
|
# }}}
|
||||||
# unsorted {{{1
|
# unsorted {{{1
|
||||||
#
|
#
|
||||||
# Portable Object Translation for GNU Gettext
|
# Portable Object Translation for GNU Gettext
|
||||||
.pot 38;5;166
|
.pot 38;5;7
|
||||||
# CAD files for printed circuit boards
|
# CAD files for printed circuit boards
|
||||||
.pcb 38;5;28
|
.pcb 38;5;7
|
||||||
# groff (rendering app for texinfo)
|
# groff (rendering app for texinfo)
|
||||||
.mm 38;5;130;3
|
.mm 38;5;7
|
||||||
# perldoc
|
# perldoc
|
||||||
.pod 38;5;172;1
|
.pod 38;5;7
|
||||||
# GIMP brush
|
# GIMP brush
|
||||||
.gbr 38;5;2
|
.gbr 38;5;7
|
||||||
# Linux Shell Executable Binary
|
# Linux Shell Executable Binary
|
||||||
.pl 38;5;214
|
.pl 38;5;7
|
||||||
# printer spool file
|
# printer spool file
|
||||||
.spl 38;5;2
|
.spl 38;5;7
|
||||||
|
# GIMP project file
|
||||||
|
.scm 38;5;7
|
||||||
|
# Nokia Symbian OS files
|
||||||
|
.sis 38;5;7
|
||||||
|
|
||||||
.1p 38;5;160
|
.1p 38;5;7
|
||||||
.3p 38;5;160
|
.3p 38;5;7
|
||||||
.cnc 38;5;37
|
.cnc 38;5;7
|
||||||
.def 38;5;136
|
.def 38;5;7
|
||||||
.ex 38;5;148;1
|
.ex 38;5;7
|
||||||
.example 38;5;225;1
|
.example 38;5;7
|
||||||
.ger 38;5;2
|
.ger 38;5;7
|
||||||
.map 38;5;58;3
|
.map 38;5;7
|
||||||
.mf 38;5;220;3
|
.mf 38;5;7
|
||||||
.mfasl 38;5;73
|
.mfasl 38;5;7
|
||||||
.mht 38;5;129
|
.mht 38;5;7
|
||||||
.mi 38;5;124
|
.mi 38;5;7
|
||||||
.mtx 38;5;36;3
|
.mtx 38;5;7
|
||||||
.pc 38;5;100
|
.pc 38;5;7
|
||||||
.pi 38;5;126
|
.pi 38;5;7
|
||||||
.plt 38;5;204;1
|
.plt 38;5;7
|
||||||
.pm 38;5;197;1
|
.pm 38;5;7
|
||||||
.rb 38;5;192
|
.rb 38;5;7
|
||||||
.rdf 38;5;144
|
.rdf 38;5;7
|
||||||
.rst 38;5;67
|
.rst 38;5;7
|
||||||
.ru 38;5;142
|
.ru 38;5;7
|
||||||
.sch 38;5;34
|
.sch 38;5;7
|
||||||
.sis 38;5;39 # Nokia Symbian OS files
|
.sty 38;5;7
|
||||||
.sty 38;5;58
|
.sug 38;5;7
|
||||||
.sug 38;5;44
|
.t 38;5;7
|
||||||
.t 38;5;28;1
|
.tdy 38;5;7
|
||||||
.tdy 38;5;214
|
.tfm 38;5;7
|
||||||
.tfm 38;5;64
|
.tfnt 38;5;7
|
||||||
.tfnt 38;5;140
|
.tg 38;5;7
|
||||||
.tg 38;5;99
|
.xln 38;5;7
|
||||||
.xln 38;5;37
|
|
||||||
# }}}
|
# }}}
|
||||||
# termcap {{{1
|
# termcap {{{1
|
||||||
TERM ansi
|
TERM ansi
|
||||||
|
@ -662,7 +682,5 @@ TERM xterm-color
|
||||||
TERM xterm-debian
|
TERM xterm-debian
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# GIMP project file
|
|
||||||
.scm 38;5;204;1
|
|
||||||
|
|
||||||
# vim: ft=dircolors:fdm=marker:et:sw=2:
|
# vim: ft=dircolors:fdm=marker:et:sw=2:
|
||||||
|
|
|
@ -67,6 +67,7 @@ Here's a screenshot:
|
||||||
LEGAL
|
LEGAL
|
||||||
=====
|
=====
|
||||||
© Copyright 2014 Magnus Woldrich.
|
© Copyright 2014 Magnus Woldrich.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||||
PARTICULAR PURPOSE. See the Perl Artistic License for more details.
|
PARTICULAR PURPOSE. See the Perl Artistic License for more details.
|
||||||
|
|
|
@ -0,0 +1,120 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# GNU bash, version 4.3.18(1)-release (x86_64-unknown-linux-gnu)
|
||||||
|
#
|
||||||
|
# © Copyright 2014 Ryan Delaney.
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# General Public License for more details.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the
|
||||||
|
# Free Software Foundation, either version 3 of the License, or (at your
|
||||||
|
# option) any later version.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along
|
||||||
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Functions {{{1
|
||||||
|
verbose() {
|
||||||
|
if [[ "$verbose" = "1" ]]; then
|
||||||
|
echo "$1" >&2
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
error() {
|
||||||
|
echo "$1" >&2
|
||||||
|
}
|
||||||
|
# }}}
|
||||||
|
# Usage {{{1
|
||||||
|
#
|
||||||
|
usage() {
|
||||||
|
cat <<EOD
|
||||||
|
buildtest
|
||||||
|
Web site: http://github.com/trapd00r/LS_COLORS
|
||||||
|
© Copyright 2014 Ryan Delaney.
|
||||||
|
|
||||||
|
buildtest builds a test suite for LS_COLORS
|
||||||
|
|
||||||
|
Usage: buildtest [OPTION]
|
||||||
|
|
||||||
|
Options
|
||||||
|
-?, --help print this help and exit
|
||||||
|
-v, --verbose increase verbosity
|
||||||
|
EOD
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
# }}}
|
||||||
|
# Parameters {{{1
|
||||||
|
#
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
case $1 in
|
||||||
|
--help | -\?)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-v | --verbose)
|
||||||
|
# Each instance of -v adds 1 to verbosity
|
||||||
|
local verbose=$((verbose+1))
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--) # End of all options
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
-*)
|
||||||
|
echo "FATAL: Unknown option : $1" >&2
|
||||||
|
exit 1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*) # no more options. Stop while loop
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
# }}}
|
||||||
|
# Dependencies {{{
|
||||||
|
if ! type sed &> /dev/null; then echo "ERROR: Missing dependency: sed" 1>&2; exit 1; fi
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
if [[ ! -d "./test" ]]; then mkdir test || exit 1; fi
|
||||||
|
cd test || exit 1
|
||||||
|
|
||||||
|
# File
|
||||||
|
touch FILE
|
||||||
|
|
||||||
|
# Executable file
|
||||||
|
touch EXECUTABLE
|
||||||
|
chmod +x EXECUTABLE
|
||||||
|
|
||||||
|
# Symlink
|
||||||
|
ln -s FILE SYMLINK
|
||||||
|
|
||||||
|
# Directory
|
||||||
|
mkdir DIRECTORY
|
||||||
|
|
||||||
|
# Directory symlink
|
||||||
|
ln -s DIRECTORY DIR-SYMLINK
|
||||||
|
|
||||||
|
# Hardlink
|
||||||
|
touch HARDLINK1
|
||||||
|
ln HARDLINK1 HARDLINK2
|
||||||
|
|
||||||
|
# Create a link to nowhere
|
||||||
|
touch nothing
|
||||||
|
ln -s nothing ORPHAN
|
||||||
|
rm nothing
|
||||||
|
|
||||||
|
# World-writable
|
||||||
|
touch WORLDWRITEABLE
|
||||||
|
chmod 0777 WORLDWRITEABLE
|
||||||
|
|
||||||
|
# Supported extensions
|
||||||
|
while read line; do
|
||||||
|
:
|
||||||
|
# echo "$line"
|
||||||
|
done < <(sed -e '/^[ ]+#/d' ../LS_COLORS)
|
||||||
|
|
||||||
|
# vim: ft=sh foldmethod=marker:
|
Loading…
Reference in New Issue