Go to file
Magnus Woldrich 5792797525 update 2023-05-13 07:51:47 +02:00
bin bin/whatdoesitlooklike: quickly present all of the file types in your term 2016-03-27 09:32:35 +02:00
.gitignore ignore test/ 2014-06-23 16:08:29 -07:00
LICENSE added LICENSE file and appropriate legalese elsewhere 2014-06-02 10:22:48 -07:00
LS_COLORS update 2023-05-13 07:51:47 +02:00
README.markdown README: fix 2016-03-27 09:42:30 +02:00
buildsuite Fixed a bug where test files for lines with a leading asterisk in LS_COLORS would not have the 'test.' prefix 2015-07-29 18:05:55 -07:00
wiki_fileext.txt use plain/text for the wiki dump 2018-12-14 09:41:51 +01:00

README.markdown

LS_COLORS

This is a collection of extension:color mappings, suitable to use as your LS COLORS environment variable. Most of them use the extended color map, 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. That's indeed a lot of extensions, but there's a lot more! Your help is greatly appreciated.

Fork this project on github, add the extensions you are missing, and send a pull request.

Some guidelines:

For files that usually ends up next to each other, like html, css and js, try to pick colors that fits in nicely together. Filetypes with multiple possible extensions, like htm and html, should have the same color.

To install and use this file, put something like this is your shell resource file:

eval $( dircolors -b $HOME/LS_COLORS )

A quick way to install would be the following set of commands (assuming bash):

wget https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -O $HOME/.dircolors
echo 'eval $(dircolors -b $HOME/.dircolors)' >> $HOME/.bashrc
. $HOME/.bashrc

ZSH SYNTAX HIGHLIGHTING

zsh-syntax-highlighting-filetypes highlights file on the command-line in realtime, using these colors.

DEVELOPERS

There's a library I've written that lets you use various LS COLORS on arbitrary files and directories. A simple implementation can be found here.

Using this, you can do

find $HOME -maxdepth 1  | ls_color

mpc search artist Laleh | ls_color

... and so on.

SO WHAT DOES IT LOOK LIKE

Here's a screenshot:

LS_COLORS

And another one:

LS_COLORS_2

LEGAL

© Copyright 2014 Magnus Woldrich.

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.

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, either version 1.0 of the License, or (at your option) any later version.

You should have received a copy of the Perl Artistic License along with this program. If not, see http://www.perlfoundation.org/artistic_license_1_0.