Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Ryan Delaney 2020-01-07 19:21:20 -08:00
commit dbb902aaec
5 changed files with 78 additions and 150 deletions

View file

@ -8,20 +8,20 @@
# described in the ECMA-48 document; in other words, you'll need a terminal
# with capabilities of displaying 256 colors.
#
# As of this writing, around 300 different filetypes/extensions is supported.
# As of this writing, over 500 different filetypes/extensions are supported.
# That's indeed a lot of extensions, but there's a lot more! Therefore I need
# your help.
#
# Fork this project on github, add the extensions you are missing, and send me
# a pull request.
#
# For files that usually ends up next to each other, like html, css and js,
# For files that usually end up next to each other, like html, css and js,
# try to pick colors that fit nicely together. Filetypes with multiple
# possible extensions, like htm and html, should have the same color.
# 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 Perl Artistic License for more details.
# PARTICULAR PURPOSE. See the Perl Artistic License for more details.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the Perl Artistic License as published by the Perl Foundation,
@ -92,6 +92,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.pgn 38;5;178
.rss 38;5;178
.xml 38;5;178
.fxml 38;5;178
.toml 38;5;178
.yaml 38;5;178
.yml 38;5;178
@ -141,6 +142,10 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
# Excel module
.xltm 38;5;73;4
.xltx 38;5;73
# macOS office suite {{{3
.pages 38;5;111
.numbers 38;5;112
.key 38;5;166
# }}}
# }}}
# configs {{{2
@ -158,6 +163,20 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.pcf 1
# adobe photoshop proof settings file
.psf 1
# Sublime Text config
.hidden-color-scheme 1
.hidden-tmTheme 1
.last-run 1
.merged-ca-bundle 1
.sublime-build 1
.sublime-commands 1
.sublime-keymap 1
.sublime-settings 1
.sublime-snippet 1
.tmTheme 1
.user-ca-bundle 1
# eclipse
.epf 1
# }}}
# }}}
# code {{{1
@ -270,6 +289,8 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.S 38;5;110
# Rust
.rs 38;5;81
# AppleScript
.scpt 38;5;219
# Swift
.swift 38;5;219
# ?
@ -366,6 +387,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.cdr 38;5;97
.flif 38;5;97
.gif 38;5;97
.icns 38;5;97
.ico 38;5;97
.jpeg 38;5;97
.JPG 38;5;97
@ -373,6 +395,8 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.nth 38;5;97
.png 38;5;97
.psd 38;5;97
.pxd 38;5;97
.pxm 38;5;97
.xpm 38;5;97
.webp 38;5;97
# }}}
@ -416,11 +440,21 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.VOB 38;5;115;1
.vob 38;5;115;1
# }}}
# subtitles {{{1
.ass 38;5;117
.srt 38;5;117
.ssa 38;5;117
.sub 38;5;117
.sup 38;5;117 # bitmap image track
.vtt 38;5;117
#}}}
# audio {{{1
.3ga 38;5;137;1
.S3M 38;5;137;1
.aac 38;5;137;1
.amr 38;5;137;1
.au 38;5;137;1
.caf 38;5;137;1
.dat 38;5;137;1
.dts 38;5;137;1
.fcm 38;5;137;1
@ -457,6 +491,9 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.pfm 38;5;66
.ttf 38;5;66
.otf 38;5;66
# Web Open Font Format
.woff 38;5;66
.woff2 38;5;66
# postscript fonts
.PFA 38;5;66
.pfa 38;5;66
@ -487,6 +524,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.zz 38;5;40
# packaged apps {{{2
.apk 38;5;215
.ipa 38;5;215
.deb 38;5;215
.rpm 38;5;215
.jad 38;5;215
@ -604,13 +642,30 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.md5 38;5;116
.properties 38;5;116
.sfv 38;5;116
.srt 38;5;116
.sub 38;5;116
.theme 38;5;116
.torrent 38;5;116
.urlview 38;5;116
.webloc 38;5;116
.lnk 38;5;39
# }}}
# macOS files {{{1
*CodeResources 38;5;239 # code signing apps
*PkgInfo 38;5;239 # app bundle id
.nib 38;5;57 # UI
.car 38;5;57 # asset catalog
.dylib 38;5;241 # shared lib
# Xcode files {{{2
.entitlements 1
.pbxproj 1
.strings 1
.storyboard 38;5;196
.xcconfig 1
.xcsettings 1
.xcuserstate 1
.xcworkspacedata 1
.xib 38;5;208
# }}}
# }}}
# encrypted data {{{1
.asc 38;5;192;3
.bfe 38;5;192;3
@ -659,6 +714,20 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
# Sega
.sms 38;5;213
# }}}
# Texas Instruments Calculator files {{{1
# for more see http://tibasicdev.wikidot.com/file-extensions
.8xp 38;5;121
.8eu 38;5;121
.82p 38;5;121
.83p 38;5;121
.8xe 38;5;121
# }}}
# 3D printing {{{1
.stl 38;5;216
.dwg 38;5;216
.ply 38;5;216
.wrl 38;5;216
# }}}
# unsorted {{{1
#
# Portable Object Translation for GNU Gettext
@ -688,6 +757,7 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.example 38;5;7
.feature 38;5;7
.ger 38;5;7
.ics 38;5;7 # calendar information
.map 38;5;7
.mf 38;5;7
.mfasl 38;5;7
@ -708,17 +778,10 @@ STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
.tfnt 38;5;7
.tg 38;5;7
.vcard 38;5;7
.vcf 38;5;7
.vcf 38;5;7 #contact information
.xln 38;5;7
# AppCode files
.iml 38;5;166
# Xcode files
.xcconfig 1
.entitlements 1
.strings 1
.storyboard 38;5;196
.xcsettings 1
.xib 38;5;208
# }}}
# termcap {{{1
TERM ansi

View file

@ -31,11 +31,7 @@ possible extensions, like htm and html, should have the same color.
# What does it look like?
Here's a screenshot _(font and minor color shades, of course, depend on terminal and its configuration)_:
![Screenshot1](http://orig07.deviantart.net/f59a/f/2016/087/a/e/ls_colors_1_by_trapd00r-d9wrdoa.png)
And another one:
![Screenshot2](http://orig02.deviantart.net/5c73/f/2016/087/4/8/ls_colors_2_by_trapd00r-d9wrdrq.png)
![Screenshot1](docs/static/LS_COLORS.png)
[0]: https://github.com/trapd00r/zsh-syntax-highlighting-filetypes
[1]: https://github.com/trapd00r/File-LsColor
@ -99,7 +95,7 @@ mpc search artist Laleh | ls_color
... and so on.
# Legal
# Legal
© Copyright 2014-2018 Magnus Woldrich.
This program is distributed in the hope that it will be useful, but WITHOUT ANY

View file

@ -1,131 +0,0 @@
#!/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
lscolors_buildsuite_print_extensions() {
sed -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d; s/^\([\.\*][^ ]+\).*/\1/' ../LS_COLORS
}
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
if [[ ! -f FILE ]]; then touch FILE; fi
# Executable file
if [[ ! -f EXECUTABLE ]]; then touch EXECUTABLE; fi
chmod +x EXECUTABLE
# Symlink
if [[ ! -f SYMLINK ]]; then ln -s FILE SYMLINK; fi
# Directory
if [[ ! -d DIRECTORY ]]; then mkdir DIRECTORY; fi
# Directory symlink
if [[ ! -d DIR-SYMLINK ]]; then ln -s DIRECTORY DIR-SYMLINK; fi
# Hardlink
if [[ ! -f HARDLINK1 ]]; then touch HARDLINK1; fi
if [[ ! -f HARDLINK2 ]]; then ln HARDLINK1 HARDLINK2; fi
# Create a link to nowhere
if [[ ! -f nothing ]]; then touch nothing; fi
if [[ ! -f ORPHAN ]]; then ln -s nothing ORPHAN; fi
if [[ -f nothing ]]; then rm nothing; fi
# World-writable
if [[ ! -f WORLDWRITEABLE ]]; then touch WORLDWRITEABLE; fi
chmod 0777 WORLDWRITEABLE
# Supported extensions
while read line; do
if [[ ! -f test"$line" ]]; then
line="${line//\*/.}"
if [[ "${line:0:1}" == "." ]]; then
touch ./DIRECTORY/test"$line"
else
touch ./DIRECTORY/"$line"
fi
fi
done < <( lscolors_buildsuite_print_extensions )
# vim: ft=sh foldmethod=marker:

BIN
docs/static/LS_COLORS-fullsize.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
docs/static/LS_COLORS.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB