2011-04-09 19:14:13 +02:00
|
|
|
LS_COLORS
|
|
|
|
=========
|
|
|
|
|
2011-04-12 10:47:39 +02:00
|
|
|
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.
|
2011-04-09 19:14:13 +02:00
|
|
|
|
2011-04-12 10:47:39 +02:00
|
|
|
As of this writing, around 300 different filetypes/extensions is 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,
|
2011-04-24 10:59:30 +02:00
|
|
|
try to pick colors that fits in nicely together. Filetypes with multiple
|
2011-04-12 10:47:39 +02:00
|
|
|
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:
|
|
|
|
|
2011-04-24 10:59:30 +02:00
|
|
|
eval $( dircolors -b $HOME/LS_COLORS )
|
2011-04-09 19:14:13 +02:00
|
|
|
|
2011-06-20 23:31:20 +02:00
|
|
|
ZSH SYNTAX HIGHLIGHTING
|
|
|
|
=======================
|
|
|
|
|
|
|
|
[zsh-syntax-highlighting-filetypes][0] highlights file on the command-line in
|
|
|
|
realtime, using these colors.
|
|
|
|
|
2011-04-09 19:14:13 +02:00
|
|
|
DEVELOPERS
|
|
|
|
==========
|
|
|
|
|
2011-06-20 23:31:20 +02:00
|
|
|
There's a [library][1] I've written that lets you use various LS COLORS on
|
|
|
|
arbitary files and directories. A simple implementation can be found [here][2].
|
2011-04-09 19:14:13 +02:00
|
|
|
|
|
|
|
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 of the current selection:
|
|
|
|
|
2011-04-24 11:02:32 +02:00
|
|
|
![LS_COLORS](http://devel.japh.se/LS_COLORS/LS_COLORS_2.png)
|
2011-04-14 11:45:15 +02:00
|
|
|
|
|
|
|
|
2011-06-20 23:31:20 +02:00
|
|
|
[0]: https://github.com/trapd00r/zsh-syntax-highlighting-filetypes
|
|
|
|
[1]: https://github.com/trapd00r/File-LsColor
|
|
|
|
[2]: https://github.com/trapd00r/File-LsColor/tree/master/bin
|