1
1
### Table of contents
2
- * [ LS_COLORS] ( #ls_colors )
3
- * [ What does it look like?] ( #what-does-it-look-like )
4
- * [ Dependencies] ( #dependencies )
5
- * [ Installation] ( #installation )
6
- * [ Information for Developers] ( #information-for-developers )
7
- * [ Legal] ( #legal )
2
+
3
+ - [ LS_COLORS] ( #ls_colors )
4
+ - [ What does it look like?] ( #what-does-it-look-like )
5
+ - [ Dependencies] ( #dependencies )
6
+ - [ Installation] ( #installation )
7
+ - [ Information for Developers] ( #information-for-developers )
8
+ - [ Legal] ( #legal )
8
9
9
10
# LS_COLORS
11
+
10
12
This is a collection of extension: color mappings, suitable to use as your
11
13
` LS_COLORS ` environment variable. Most of them use the extended color map,
12
14
described in the ECMA-48 document; in other words, you'll need a terminal
@@ -26,15 +28,11 @@ try to pick colors that fits in nicely together. Filetypes with multiple
26
28
possible extensions, like htm and html, should have the same color.
27
29
28
30
# What does it look like?
31
+
29
32
Here's a screenshot _ (font and minor color shades, of course, depend on terminal and its configuration)_ :
30
33
31
34
![ Screenshot1] ( docs/static/LS_COLORS.png )
32
35
33
- [ 0 ] : https://github.com/trapd00r/zsh-syntax-highlighting-filetypes
34
- [ 1 ] : https://github.com/trapd00r/File-LsColor
35
- [ 2 ] : https://github.com/trapd00r/File-LsColor/tree/master/bin
36
- [ 3 ] : https://aur.archlinux.org/packages/lscolors-git
37
-
38
36
# Dependencies
39
37
40
38
You need GNU ` dircolors ` and a compatible directory listing tool, such as GNU
@@ -47,11 +45,13 @@ The repo contains two compiled scripts `lscolors.sh` & `lscolors.csh`, which you
47
45
To enable the colors, add the following line to your shell's start-up script:
48
46
49
47
For Bourne shell (e.g. ` ~/.bashrc ` or ` ~/.zshrc ` ):
48
+
50
49
```
51
50
source ~/path/to/lscolors.sh
52
51
```
53
52
54
53
For C shell (e.g. ` ~/.cshrc ` ):
54
+
55
55
```
56
56
source ~/path/to/lscolors.csh
57
57
```
72
72
```
73
73
74
74
## Arch Linux
75
+
75
76
Arch Linux users can install the [ ` lscolors-git ` ] [ 3 ] package from the AUR for easy
76
77
integration with bash, csh, or zsh.
77
78
78
79
# Information for Developers
80
+
79
81
There's a [ library] [ 1 ] I've written that lets you use various LS COLORS on
80
82
arbitrary files and directories. A simple implementation can be found [ here] [ 2 ] .
81
83
82
84
Using this, you can do
85
+
83
86
``` shell
84
87
find $HOME -maxdepth 1 | ls_color
85
88
@@ -89,6 +92,7 @@ mpc search artist Laleh | ls_color
89
92
... and so on.
90
93
91
94
# Legal
95
+
92
96
© Copyright 2014-2022 Magnus Woldrich.
93
97
94
98
This program is distributed in the hope that it will be useful, but WITHOUT ANY
@@ -101,3 +105,7 @@ either version 1.0 of the License, or (at your option) any later version.
101
105
102
106
You should have received a copy of the Perl Artistic License along
103
107
with this program. If not, see < http://www.perlfoundation.org/artistic_license_1_0 > .
108
+
109
+ [ 1 ] : https://github.com/trapd00r/File-LsColor
110
+ [ 2 ] : https://github.com/trapd00r/File-LsColor/tree/master/bin
111
+ [ 3 ] : https://aur.archlinux.org/packages/lscolors-git
0 commit comments