-
Notifications
You must be signed in to change notification settings - Fork 3
/
ls++.conf
153 lines (109 loc) · 3.16 KB
/
ls++.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# ls++ configuration file
# location: $XDG_CONFIG_HOME/ls++/ls++.conf
use vars qw(@ignores
@d
@c
$colorscheme
%ls_colors
$symlink_delim
$symlink_color
);
$colorscheme = 'shadowfax';
@ignores = (
'\.un~$',
'\.sw[o-z]$',
);
@d = qw(▕ - │ ▏);
#$d[0] = '├';
#$d[1] = '-';
#$d[2] = '▕▏';
#$d[3] = '┤';
$symlink_delim = '=>';
$symlink_color = 1;
@c = (0 .. 16);
#);
# extended colors
$c[0] = 237; # NULL black
$c[1] = 131; # x
$c[2] = 107; # r
$c[3] = 075; # G, sec .*rc
$c[4] = 240; # day, symlink file
$c[5] = 220; #
$c[6] = 185; #
$c[7] = 216; # w, size
$c[8] = 220; # link
$c[9] = 208; # hour
$c[10] = 243; #
$c[11] = 161; # +s bright magenta
$c[12] = 240; #
$c[13] = 025; #
$c[14] = 248; # B, month, delim
$c[15] = 196; # Min, link icon
%ls_colors = (
'README*' => $c[8],
'Makefile$' => $c[15],
'.*rc$' => $c[3],
);
=pod
=head1 NAME
ls++.conf - ls++ configuration file
=head1 DESCRIPTION
ls++.conf is the configuration file for ls++(1). ls++ first searches for it at
~/.config/ls++/ls++.conf then at ~/.ls++.conf then at ./ls++.conf and finally at
/etc/ls++.conf.
Lines beginning with a '#' character are comments. All other non-empty lines
are live Perl code. This gives a lot of power to the end user, but it also
allows for fuckups.
Please don't fuckup.
=head1 ENVIRONMENT
=over 8
=item @d
Array containting the characters to use for delimiting the columns.
=item @c
Array containing the colors to be used.
=item $colorscheme
Colorscheme to be used.
=item %ls_colors
A hash where its keys are patterns (possibly valid regular expressions) to be
matched against the files. The values should be attributes or colors which will
be added to the output.
This does the same thing as LS_COLORS, except that you can match against the
full filname, and not only the extension. Using LS_COLORS, you could never match
README or Makefile for example. Those two are matched by default.
The special value IGNORE will ignore all files matching the key pattern.
=back
=head1 COLORS
The default colortable left here for reference (ANSI colors).
0 NULL black
1 NULL bright black
2 K red
3 G, sec bright red
4 day green
5 +x bright green
6 +r yellow
7 +w, M bright yellow
8 other blue
9 hour bright blue
10 magenta
11 +s bright magenta
12 cyan
13 link bright cyan
14 B, month, delim white
15
16 reset
17 bold
=head1 AUTHOR
Magnus Woldrich
CPAN ID: WOLDRICH
http://japh.se
=head1 REPORTING BUGS
Report bugs and/or feature requests on L<https://github.com/trapd00r/ls--/issues>
or to L<[email protected]>
=head1 COPYRIGHT
Copyright (C) 2010 Magnus Woldrich. All right reserved.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
=cut
1;
# vim: set ft=perl ts=2 expandtab: