mirror of
https://github.com/garabik/grc.git
synced 2024-10-28 17:41:01 +01:00
Compare commits
315 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f4a579e08d | ||
|
c81ae202b1 | ||
|
f79a3dc650 | ||
|
47e7daa155 | ||
|
223732e54b | ||
|
ab22533a16 | ||
|
ea4aa18200 | ||
|
6f0a553c76 | ||
|
d8fc493d72 | ||
|
09793f88a6 | ||
|
e277b6e960 | ||
|
1d7de7ea44 | ||
|
cffdc86127 | ||
|
30ecf4688f | ||
|
db55a51206 | ||
|
64c1ba6a0d | ||
|
9dd0d18f62 | ||
|
c367041dcc | ||
|
4ea874b224 | ||
|
ae9cecb66c | ||
|
b7e96762b4 | ||
|
06afa277e0 | ||
|
e0c5ab25c8 | ||
|
ca8acefed8 | ||
|
cb0ee756ca | ||
|
acd749e705 | ||
|
7cd8fff5e1 | ||
|
357e686aa6 | ||
|
2fc38520fc | ||
|
1844de085c | ||
|
4e796fbb8d | ||
|
7eaacb5c4a | ||
|
a31019fd81 | ||
|
98f483068a | ||
|
f2ace18191 | ||
|
61c070db25 | ||
|
ce4f6290d8 | ||
|
eaf4203de1 | ||
|
8f7adc0eee | ||
|
e969eeef72 | ||
|
826422fad6 | ||
|
757515996f | ||
|
8eb0e6614b | ||
|
8275543560 | ||
|
4cdaaceb3e | ||
|
ec1eab4f64 | ||
|
70f4178f37 | ||
|
5ee2461214 | ||
|
5fefb0602f | ||
|
8f5b15e55a | ||
|
b16ae2647d | ||
|
371f85a580 | ||
|
9f61e86374 | ||
|
f7b36ed2c0 | ||
|
7704a1824e | ||
|
4e1e9d7fdc | ||
|
dfb89f2e15 | ||
|
95da0c8e3a | ||
|
3f3fc2932e | ||
|
499fdbff0e | ||
|
8263f4f63b | ||
|
8c2a0ace74 | ||
|
e5f43bf3d8 | ||
|
892c6f6671 | ||
|
023c88b37b | ||
|
fb14b1a0a0 | ||
|
0c615d2904 | ||
|
f2ec76166e | ||
|
92e48627f8 | ||
|
a51b7f0a7b | ||
|
448f19652a | ||
|
01a21de7fa | ||
|
7d04c05cd0 | ||
|
3101bb9eb3 | ||
|
fba1ba22b5 | ||
|
c910742ee6 | ||
|
23c1802b4a | ||
|
6006304f28 | ||
|
f6788db3e1 | ||
|
0a8a163c03 | ||
|
43092396e8 | ||
|
1a8a777ee0 | ||
|
30606591b7 | ||
|
77414a6d18 | ||
|
763fa396b1 | ||
|
02f22d4cf4 | ||
|
01af1fdceb | ||
|
36ef164987 | ||
|
ad91fc4b2e | ||
|
e83a11599c | ||
|
074fe6e3b1 | ||
|
c414dfd3b4 | ||
|
9367d03d9f | ||
|
75e255c730 | ||
|
98b4df7bd2 | ||
|
eafbb9dded | ||
|
5c9d5abec4 | ||
|
5981e2ac1c | ||
|
8267bab647 | ||
|
c71b244b80 | ||
|
ee07d1bd15 | ||
|
7df059ed67 | ||
|
270e11cb83 | ||
|
edee9e7591 | ||
|
9302d75f06 | ||
|
b11c36fcba | ||
|
5ca81657ab | ||
|
4a37b7fc7c | ||
|
ae79db506e | ||
|
677295cb8f | ||
|
b5726877be | ||
|
c7856d4068 | ||
|
f32d8a1432 | ||
|
2b98e0767d | ||
|
dd7ecc05d6 | ||
|
3abfc841db | ||
|
7a5f76aeee | ||
|
ae88b81759 | ||
|
c1cb9b8941 | ||
|
04665c00b5 | ||
|
50174b2336 | ||
|
5bc9f4e70f | ||
|
047bcc6c7a | ||
|
f3f76ad382 | ||
|
918df658c2 | ||
|
1d07328d38 | ||
|
98ec00d036 | ||
|
d64b7c6523 | ||
|
681408c3a5 | ||
|
e0033c0a23 | ||
|
8ec2f1a310 | ||
|
d713c4fbce | ||
|
692cd20fba | ||
|
fc39736c78 | ||
|
90de144c31 | ||
|
66efc0dc3a | ||
|
e9fc71c699 | ||
|
e88d90ff0a | ||
|
4c8b5a799a | ||
|
9c4796ff65 | ||
|
375b6c3443 | ||
|
92aac170d0 | ||
|
ec91099255 | ||
|
98612d8fb5 | ||
|
aa6871479c | ||
|
99c13d1fa5 | ||
|
337794041b | ||
|
98302aaf75 | ||
|
d0420ed646 | ||
|
5d7c715ea9 | ||
|
dbd246f57a | ||
|
c244781df8 | ||
|
59509cff15 | ||
|
ad736f824e | ||
|
869a5ebe93 | ||
|
e1c94357fe | ||
|
f47677d6e4 | ||
|
c91450d0fb | ||
|
50ba64c8bc | ||
|
fdea4dc477 | ||
|
f4ecb7249b | ||
|
bde2b3140a | ||
|
481e097c76 | ||
|
cc1880e6d9 | ||
|
d927c5db24 | ||
|
a110dd51bd | ||
|
c43e6a2ca3 | ||
|
4b76c139a5 | ||
|
1d661756f0 | ||
|
b281df72c4 | ||
|
a734ae32a4 | ||
|
b1d36b1f19 | ||
|
a67ef384ab | ||
|
aa33a0dd6a | ||
|
da6c77164d | ||
|
471e841d19 | ||
|
582a18533d | ||
|
1f05d78f45 | ||
|
5609f1dc42 | ||
|
d13808f5bd | ||
|
ddc03abfdb | ||
|
ffd3b12a40 | ||
|
2df1e9725e | ||
|
e10d7d257f | ||
|
8fe23efe77 | ||
|
160ea4ba1a | ||
|
f3679d91a1 | ||
|
987fb4ce98 | ||
|
ec7dbb8aa7 | ||
|
5da88f5bcc | ||
|
447e5f9c5d | ||
|
878ea12536 | ||
|
6a3d1ca7ba | ||
|
e996a792f0 | ||
|
5758a80b5e | ||
|
e68ab84feb | ||
|
d3f3aac73a | ||
|
b39abc0948 | ||
|
d30023cb5f | ||
|
7e98851872 | ||
|
6bd39e6581 | ||
|
1dea43457f | ||
|
b3c0aafae4 | ||
|
ab975362c3 | ||
|
2789838164 | ||
|
96073d8766 | ||
|
ff14ccb730 | ||
|
bb1f123b37 | ||
|
18c9683708 | ||
|
6b326ef6ec | ||
|
1d1fbddafc | ||
|
a715436fc4 | ||
|
1516a3e3c7 | ||
|
8c330426fe | ||
|
ddc789bfc0 | ||
|
bd94adda6c | ||
|
d6b256fc12 | ||
|
69ecfd408b | ||
|
8baa92d616 | ||
|
5bc310369a | ||
|
826b7d062b | ||
|
8c99f75678 | ||
|
cab7d78d55 | ||
|
3125d93c3d | ||
|
836dcaeff3 | ||
|
ea5e50953a | ||
|
2aa2f36139 | ||
|
6dd1ff8b95 | ||
|
0fb534c2ac | ||
|
85b3425a97 | ||
|
f1e635ee6b | ||
|
94a46c60f8 | ||
|
f5680f91c6 | ||
|
f73579b0ab | ||
|
56d54cef0f | ||
|
f6bdf1faf1 | ||
|
ccbaa79800 | ||
|
638a6f94e6 | ||
|
6d7ab5f648 | ||
|
1d4f9e1ca5 | ||
|
38d8cd75fe | ||
|
f377998feb | ||
|
82ca58087c | ||
|
79f8c178d0 | ||
|
214db3009e | ||
|
9a60d8c349 | ||
|
759e35a1dc | ||
|
5e0bc0235c | ||
|
18d69b24bf | ||
|
0a658d90f1 | ||
|
60830a9d05 | ||
|
b2f480c25a | ||
|
26758e85cd | ||
|
a1b3d3cc14 | ||
|
538c809a86 | ||
|
c1b3fafda4 | ||
|
c946465a56 | ||
|
8b5313fb3a | ||
|
c29847ce21 | ||
|
af3730564c | ||
|
cc15ffed57 | ||
|
35a4b5621e | ||
|
c9b8d73419 | ||
|
c66f3b7363 | ||
|
9b81a22581 | ||
|
0eb46ed912 | ||
|
fabdbcaf08 | ||
|
0928d0b936 | ||
|
9f5781460b | ||
|
448c5f064d | ||
|
7a641145e6 | ||
|
5345174719 | ||
|
8edae13481 | ||
|
6b15eede1b | ||
|
021439191c | ||
|
29ccd7fa31 | ||
|
0d85e08767 | ||
|
b1262d7007 | ||
|
53e5f28ec4 | ||
|
5bce6188fd | ||
|
d494aa2d72 | ||
|
7a4aa1e448 | ||
|
9374a08e17 | ||
|
a7c42cf56f | ||
|
f29aeb671a | ||
|
c74e2e0ccb | ||
|
4a4cefb981 | ||
|
6f6ef83a90 | ||
|
5c32ef19df | ||
|
bac03020d5 | ||
|
71c6c70965 | ||
|
b1863ef01d | ||
|
13bbd954bb | ||
|
0ae0ce08a8 | ||
|
7a48f0d91e | ||
|
5b42261cb6 | ||
|
829e900211 | ||
|
3d698cc15e | ||
|
60f38e18ad | ||
|
a8bcb068fe | ||
|
295378bcbd | ||
|
e363371815 | ||
|
14b03882ac | ||
|
7169fd287e | ||
|
27b06f588c | ||
|
1595dfb6cf | ||
|
1b7ae97369 | ||
|
f00c737688 | ||
|
a3745ca7f8 | ||
|
b5028b2a01 | ||
|
757fd862f8 | ||
|
28aeefcc28 | ||
|
b1005bb0f2 | ||
|
0b9c238684 | ||
|
6e41d2ecbc |
49
CREDITS
49
CREDITS
@ -1,11 +1,44 @@
|
|||||||
Credits where credits are due:
|
Credits where credits are due:
|
||||||
These people helped me with ideas, support and other things:
|
These people helped me with ideas, support and other things:
|
||||||
|
|
||||||
Piotr Klaban <makler@man.torun.pl>
|
Piotr Klaban
|
||||||
Jason Tackaberry <tack@linux.com>
|
Jason Tackaberry
|
||||||
Eivind Tagseth <eivindt@multinet.no>
|
Eivind Tagseth
|
||||||
Edward Betts <edward@debian.org>
|
Edward Betts
|
||||||
Joey Hess <joey@kitenet.net>
|
Joey Hess
|
||||||
Miguel Gualdron <mig@anet.com>
|
Miguel Gualdron
|
||||||
Daniel Kollar <dkollar@fmph.uniba.sk>
|
Daniel Kollár
|
||||||
Christian Zuckschwerdt <zany@triq.net>
|
Christian Zuckschwerdt
|
||||||
|
Paul Oppenheim
|
||||||
|
Emanuele Aina
|
||||||
|
April Arcus
|
||||||
|
Justin J. Novack
|
||||||
|
Ben Hoskins
|
||||||
|
Nikolay Kolev
|
||||||
|
Juraj Bednar
|
||||||
|
Francisco De Lozanne
|
||||||
|
Duncan Overbruck
|
||||||
|
delphinus
|
||||||
|
Aditya Bhargava
|
||||||
|
Cemil Browne
|
||||||
|
Ruben Barkow
|
||||||
|
Efreak
|
||||||
|
Alexander Kuntashov
|
||||||
|
Isaias Piña
|
||||||
|
Andrew Wong
|
||||||
|
Max
|
||||||
|
Pavel Vishnyakov
|
||||||
|
tomaszn
|
||||||
|
Nicolas Leclercq
|
||||||
|
Dave Wikoff
|
||||||
|
richi235
|
||||||
|
Ricardo J. Barberis
|
||||||
|
Joe Block
|
||||||
|
iamoverit
|
||||||
|
Oxicode
|
||||||
|
Jonas Minnberg
|
||||||
|
alcik
|
||||||
|
Henry Eklind
|
||||||
|
Justin Lecher
|
||||||
|
|
||||||
|
|
||||||
|
16
INSTALL
16
INSTALL
@ -5,18 +5,18 @@ Radovan Garabík <garabik @ kassiopeia.juls.savba.sk>
|
|||||||
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
|
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
|
||||||
|
|
||||||
===================================================================
|
===================================================================
|
||||||
Requirenments:
|
Requirements:
|
||||||
anything with python interpreter, with more or less work needed
|
Anything with a python interpreter, with more or less work needed
|
||||||
if it is not unix.
|
if it is not unix.
|
||||||
|
|
||||||
If you have debian system with all necessary packages installed, type
|
If you have a debian system with all necessary packages installed, type
|
||||||
dpkg-buildpackage (or dpkg-buildpackage -rfakeroot) in the package's
|
dpkg-buildpackage (or dpkg-buildpackage -rfakeroot) in the package's
|
||||||
directory, then type
|
directory, then type
|
||||||
dpkg -i ../grc*deb
|
dpkg -i ../grc*deb
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
1) copy conf.* files into /usr/share/grc/ or /usr/local/share/grc/,
|
1) copy colourfiles/conf.* files into /usr/share/grc/ or /usr/local/share/grc/,
|
||||||
creating directories when needed
|
creating directories when needed
|
||||||
|
|
||||||
2) copy grc.conf into /etc/
|
2) copy grc.conf into /etc/
|
||||||
@ -28,5 +28,9 @@ else:
|
|||||||
5) modify /etc/grc.conf if you feel like it
|
5) modify /etc/grc.conf if you feel like it
|
||||||
|
|
||||||
|
|
||||||
there is a small shell script called install.sh provided, which does
|
There is a small shell script called install.sh provided, which
|
||||||
automatically do the above.
|
automatically does the above steps.
|
||||||
|
|
||||||
|
If you're on OS X and using Homebrew,
|
||||||
|
brew install grc
|
||||||
|
|
||||||
|
239
README
239
README
@ -1,239 +0,0 @@
|
|||||||
===================================================================
|
|
||||||
Generic Colouriser
|
|
||||||
|
|
||||||
Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
|
|
||||||
garabik @ kassiopeia.juls.savba.sk
|
|
||||||
|
|
||||||
===================================================================
|
|
||||||
|
|
||||||
For the impatient - try following commands:
|
|
||||||
|
|
||||||
grc netstat
|
|
||||||
grc ping hostname
|
|
||||||
grc tail /var/log/syslog
|
|
||||||
grc ps aux
|
|
||||||
|
|
||||||
---------------
|
|
||||||
|
|
||||||
Being overflooded with different logfile colo(u)?ri(s|z)ers, colortails,
|
|
||||||
gccolors, colormakes and similar programs for making text files or outputs
|
|
||||||
of different programs more readable by inserting ansi colour control codes
|
|
||||||
into them, I decided to write my very own colouriser, eventually providing
|
|
||||||
the functions of all those others.
|
|
||||||
|
|
||||||
Two programs are provided: grc and grcat. The main is grcat, which acts as
|
|
||||||
a filter, i.e. taking standard input, colourising it and writing to
|
|
||||||
standard output.
|
|
||||||
|
|
||||||
grcat takes as a parameter the name of configuration file.
|
|
||||||
|
|
||||||
Directories ~/.grc/, /usr/local/share/grc/, /usr/share/grc/ are searched
|
|
||||||
for the file (in this order). If the file is not found, it is assumed to be
|
|
||||||
an absolute path of a configuration file located elsewhere.
|
|
||||||
|
|
||||||
Configuration file consists of entries, one per regexp, entries are
|
|
||||||
separated with lines with first character non-alphanumeric (except #).
|
|
||||||
Lines beginning with # or empty lines are ignored.
|
|
||||||
|
|
||||||
Each entry consists of several lines.
|
|
||||||
Each line has form:
|
|
||||||
keyword=value
|
|
||||||
where keyword is one of: regexp, colours, command, skip, replace, count
|
|
||||||
Only regexp is mandatory, but it does not have much sense by itself
|
|
||||||
unless you specify at least a colour, skip, replace or command keyword as well.
|
|
||||||
|
|
||||||
regexp is the regular expression to match
|
|
||||||
|
|
||||||
colours is the list of colours, separated by commas (you can specify only
|
|
||||||
one colour), each colour per one regexp group specified in regexp.
|
|
||||||
if you use special colour name "previous", colour of the previous line
|
|
||||||
of text will be used (actually, if both the first and last character of
|
|
||||||
the previous line are of different colour than the default one,
|
|
||||||
colour of the first one will be used).
|
|
||||||
Another special colour name "unchanged" will leave the colour
|
|
||||||
unchanged, useful if you need some context for matching
|
|
||||||
regular expression and you want to leave the colour of context
|
|
||||||
unchanged.
|
|
||||||
Yet another special name is an arbitrary string enclosed in
|
|
||||||
straight quotes. This string will be inserted directly into
|
|
||||||
the output in front of the matching expression. The string will
|
|
||||||
be eval'ed, so you can use usual python escape sequences.
|
|
||||||
This is useful on a 256-colour enabled xterm, where e.g.
|
|
||||||
colours="\033[38;5;22m" will give you a dark green (inspired
|
|
||||||
by Rutger Ovidius). Caveat: the string cannot contain a comma. This
|
|
||||||
is due to my laziness :-)
|
|
||||||
|
|
||||||
|
|
||||||
command is command to be executed when regexp matches. Its output will
|
|
||||||
be mixed with normal stdout, use redirectors ( >/dev/null) if you want
|
|
||||||
to suppress it.
|
|
||||||
|
|
||||||
skip can be skip=yes, if that case the matched line is skipped
|
|
||||||
(discarded from the output), or skip=no, when it is not skipped.
|
|
||||||
Default (if you do not have skip keyword) is of course not skipped.
|
|
||||||
|
|
||||||
replace means the regular expression match will be replaced by the value
|
|
||||||
|
|
||||||
all the preceeding regular expressions will be evaluated against
|
|
||||||
the original text, but if they match and the replacement changes
|
|
||||||
the length of the text, the colouring will *stay at the same positions*,
|
|
||||||
which is probably not what you want - therefore put the `replace' rule
|
|
||||||
preferrably at the beginning of config file
|
|
||||||
|
|
||||||
all the following regular expressions will be evaluated against
|
|
||||||
the replaced text, not the original
|
|
||||||
|
|
||||||
replacement is done by re.sub(), therefore you can use anything
|
|
||||||
python supports - in particular, \1, \2 etc... to include text
|
|
||||||
from the original matching groups, e.g:
|
|
||||||
regexp=(\d\d):(\d\d):(\d\d)
|
|
||||||
replace=\1h\2m\3s
|
|
||||||
will change time format from 09:43:59 into 09h43m59s
|
|
||||||
|
|
||||||
count is one of words: once, more, stop, previous, block or unblock
|
|
||||||
|
|
||||||
once means that if the regexp is matched, its first occurrence is coloured
|
|
||||||
and the program will continue with other regexp's.
|
|
||||||
|
|
||||||
more means that if there are multiple matches of the regexp in one line,
|
|
||||||
all of them will be coloured.
|
|
||||||
|
|
||||||
stop means that the regexp will be coloured and program will move to the
|
|
||||||
next line (i.e. ignoring other regexp's)
|
|
||||||
|
|
||||||
previous means the count will be the same as for the previous line
|
|
||||||
|
|
||||||
block marks a start of a multiline block of text, coloured with
|
|
||||||
the same colour
|
|
||||||
|
|
||||||
unblock, obviously, marks the end of such a block
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
example:
|
|
||||||
|
|
||||||
# this is probably a pathname
|
|
||||||
regexp=/[\w/\.]+
|
|
||||||
colour=green
|
|
||||||
count=more
|
|
||||||
|
|
||||||
this will match /usr/bin, /usr/local/bin/, /etc/init.d/syslogd and similar
|
|
||||||
strings and paint it with green.
|
|
||||||
|
|
||||||
Another example:
|
|
||||||
|
|
||||||
regexp=^-{1,2}\s{0,1}$
|
|
||||||
colours=red
|
|
||||||
count=block
|
|
||||||
-
|
|
||||||
regexp=^\s{0,5}$
|
|
||||||
colours=default
|
|
||||||
count=unblock
|
|
||||||
|
|
||||||
this will turn all correctly formatted mail signatures red.
|
|
||||||
|
|
||||||
Regular expressions are evaluated from top to bottom, this allows nested
|
|
||||||
and overlapped expressions. (e.g. you colour everything inside parentheses
|
|
||||||
with one colour, and if a following expression matches the text inside
|
|
||||||
parentheses, it will be also coloured)
|
|
||||||
|
|
||||||
Typical usage:
|
|
||||||
|
|
||||||
grcat conf.log < /var/log/syslog
|
|
||||||
/usr/sbin/traceroute www.linux.org | grcat conf.traceroute
|
|
||||||
grcat conf.esperanto < Fundamento.txt | less -r
|
|
||||||
|
|
||||||
To facilitate the use, command grc acts as frontend for grcat, automatically
|
|
||||||
choosing the configuration files, so you can write:
|
|
||||||
|
|
||||||
grc netstat
|
|
||||||
grc ping hostname
|
|
||||||
grc tail /var/log/syslog
|
|
||||||
|
|
||||||
etc...
|
|
||||||
|
|
||||||
grc will execute command command with optional parameters piping its stdout
|
|
||||||
into grcat.
|
|
||||||
|
|
||||||
Configuration file for grcat is determined by /etc/grc.conf or
|
|
||||||
~/.grc/grc.conf file.
|
|
||||||
|
|
||||||
Format of /etc/grc.conf or ~/.grc/grc.conf: each entry consists of 2 lines,
|
|
||||||
between entries there can be any number of empty lines or lines beginning
|
|
||||||
with # (comments)
|
|
||||||
|
|
||||||
First line is regular expression, second line the name of configuration
|
|
||||||
file for grcat.
|
|
||||||
|
|
||||||
Configuration file after the first regular expression matching the rest of
|
|
||||||
line after grc will be passed to grcat as its configuration file
|
|
||||||
|
|
||||||
For example, if you have
|
|
||||||
|
|
||||||
# log file
|
|
||||||
\b\w+\b.*log\b
|
|
||||||
conf.log
|
|
||||||
|
|
||||||
# traceroute command
|
|
||||||
(^|[/\w\.]+/)traceroute\s
|
|
||||||
conf.traceroute
|
|
||||||
|
|
||||||
in your /etc/grc.conf, then typing grc cat /var/log/syslog will use
|
|
||||||
conf.log to colourise the output,
|
|
||||||
grc /usr/sbin/traceroute www.linux.org will use conf.traceroute
|
|
||||||
|
|
||||||
Miscellaneous remarks:
|
|
||||||
|
|
||||||
You should get yourself familiar with regular expressions. Good reading is
|
|
||||||
at http://docs.python.org/dev/howto/regex.html
|
|
||||||
|
|
||||||
The program is not yet optimized for speed. There are places that can
|
|
||||||
give a big boost if optimized.
|
|
||||||
|
|
||||||
Regular expressions are handled by python, it means that they may be
|
|
||||||
slightly different from those you know from perl or grep. It's not my
|
|
||||||
fault in that case.
|
|
||||||
|
|
||||||
Colours are one of:
|
|
||||||
none, default, bold, underline, blink, reverse, concealed,
|
|
||||||
black, green, yellow, blue, magenta, cyan, white,
|
|
||||||
on_black, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white
|
|
||||||
beep
|
|
||||||
on_red means that the background (instead of foreground) is painted
|
|
||||||
with red etc...
|
|
||||||
|
|
||||||
Additional colours can be: dark, italic, rapidblink, strikethrough.
|
|
||||||
These are supported only on some terminals, so if you want to write
|
|
||||||
portable configuration files, avoid uing them (idea by James Rowe).
|
|
||||||
|
|
||||||
there can be more attributes per line (separated by space), e.g.
|
|
||||||
|
|
||||||
# this is probably a pathname
|
|
||||||
regexp=/[\w/\.]+
|
|
||||||
colours=bold blink green
|
|
||||||
count=more
|
|
||||||
|
|
||||||
will display pathnames in bold blinking green
|
|
||||||
|
|
||||||
-----------
|
|
||||||
Python 3 compatibility:
|
|
||||||
|
|
||||||
There is some preliminary python3 support, meaning that both grc and
|
|
||||||
grcat will run under both python2 and python3. However, all the regular
|
|
||||||
expressions are strings, and grcat works on string input (not bytes).
|
|
||||||
Therefore it will miserably fail if fed input with invalid UTF-8
|
|
||||||
characters.
|
|
||||||
|
|
||||||
-----------
|
|
||||||
Hint:
|
|
||||||
|
|
||||||
Following commands will display nice coloured log in virtual console 12:
|
|
||||||
|
|
||||||
If you have GNU tail:
|
|
||||||
tail --follow=name /var/log/syslog | grcat conf.log >/dev/tty12
|
|
||||||
or, if you have recent BSD tail:
|
|
||||||
tail -F /var/log/syslog | grcat conf.log >/dev/tty12
|
|
||||||
|
|
||||||
If you want to start using grc automatically with supported commands, add
|
|
||||||
source /etc/grc.bashrc
|
|
||||||
to your .bash_profile (assuming you copied grc.bashrc to /etc)
|
|
212
README.markdown
Normal file
212
README.markdown
Normal file
@ -0,0 +1,212 @@
|
|||||||
|
# Generic Colouriser
|
||||||
|
|
||||||
|
Radovan Garabík <http://kassiopeia.juls.savba.sk/~garabik/software/grc.html> (garabik @ kassiopeia.juls.savba.sk)
|
||||||
|
|
||||||
|
For the impatient - try following commands:
|
||||||
|
|
||||||
|
grc netstat
|
||||||
|
grc ping hostname
|
||||||
|
grc tail /var/log/syslog
|
||||||
|
grc ps aux
|
||||||
|
|
||||||
|
Being overflooded with different logfile colo(u)?ri(s|z)ers, colortails, gccolors, colormakes and similar programs for making text files or outputs of different programs more readable by inserting ansi colour control codes into them, I decided to write my very own colouriser, eventually providing the functions of all those others.
|
||||||
|
|
||||||
|
Two programs are provided: `grc` and `grcat`. The main is `grcat`, which acts as a filter, i.e. taking standard input, colourising it and writing to standard output.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
`grcat` takes as a parameter the name of configuration file.
|
||||||
|
|
||||||
|
Directories `~/.grc/`, `/usr/local/share/grc/`, `/usr/share/grc/` are searched for the file (in this order). If the file is not found, it is assumed to be an absolute path of a configuration file located elsewhere.
|
||||||
|
|
||||||
|
Configuration file consists of entries, one per regexp, entries are separated with lines with first character non-alphanumeric (except #). Lines beginning with # or empty lines are ignored.
|
||||||
|
|
||||||
|
Each entry consists of several lines.
|
||||||
|
|
||||||
|
Each line has form: `keyword=value`
|
||||||
|
|
||||||
|
where keyword is one of: regexp, colours, command, concat, skip, replace, count
|
||||||
|
|
||||||
|
Only regexp is mandatory, but it does not have much sense by itself unless you specify at least a colour, skip, replace or command keyword as well.
|
||||||
|
|
||||||
|
**regexp** is the regular expression to match.
|
||||||
|
|
||||||
|
**colours** is the list of colours, separated by commas (you can specify only one colour), each colour per one regexp group specified in regexp.
|
||||||
|
|
||||||
|
if you use special colour name "previous", colour of the previous line of text will be used (actually, if both the first and last character of the previous line are of different colour than the default one, colour of the first one will be used).
|
||||||
|
|
||||||
|
Another special colour name "unchanged" will leave the colour unchanged, useful if you need some context for matching regular expression and you want to leave the colour of context unchanged.
|
||||||
|
|
||||||
|
Yet another special name is an arbitrary string enclosed in straight quotes. This string will be inserted directly into the output in front of the matching expression. The string will be eval'ed, so you can use usual python escape sequences.
|
||||||
|
|
||||||
|
This is useful on a 256-colour enabled xterm, where e.g. `colours="\033[38;5;22m"` will give you a dark green (inspired by Rutger Ovidius). Caveat: the string cannot contain a comma. This is due to my laziness :-)
|
||||||
|
|
||||||
|
**command** is command to be executed when regexp matches. Its output will be mixed with normal stdout, use redirectors (`>/dev/null`) if you want to suppress it.
|
||||||
|
|
||||||
|
**concat** is the name of a file which the current line will be appended to when the regexp matches.
|
||||||
|
|
||||||
|
**skip** can be `skip=yes`, if that case the matched line is skipped (discarded from the output), or `skip=no`, when it is not skipped. Default (if you do not have skip keyword) is of course not skipped.
|
||||||
|
|
||||||
|
**replace** means the regular expression match will be replaced by the value. All the preceeding regular expressions will be evaluated against the original text, but if they match and the replacement changes the length of the text, the colouring will *stay at the same positions*, which is probably not what you want - therefore put the `replace` rule preferrably at the beginning of config file.
|
||||||
|
|
||||||
|
all the following regular expressions will be evaluated against the replaced text, not the original.
|
||||||
|
|
||||||
|
replacement is done by `re.sub()`, therefore you can use anything python supports - in particular, `\1`, `\2` etc... to include text from the original matching groups, e.g:
|
||||||
|
|
||||||
|
regexp=(\d\d):(\d\d):(\d\d)
|
||||||
|
replace=\1h\2m\3s
|
||||||
|
|
||||||
|
will change time format from 09:43:59 into 09h43m59s
|
||||||
|
|
||||||
|
**count** is one of words: once, more, stop, previous, block or unblock
|
||||||
|
|
||||||
|
- **once** means that if the regexp is matched, its first occurrence is coloured and the program will continue with other regexp's.
|
||||||
|
- **more** means that if there are multiple matches of the regexp in one line, all of them will be coloured.
|
||||||
|
- **stop** means that the regexp will be coloured and program will move to the next line (i.e. ignoring other regexp's)
|
||||||
|
- **previous** means the count will be the same as for the previous line
|
||||||
|
- **block** marks a start of a multiline block of text, coloured with the same colour
|
||||||
|
- **unblock**, obviously, marks the end of such a block
|
||||||
|
|
||||||
|
example:
|
||||||
|
|
||||||
|
# this is probably a pathname
|
||||||
|
regexp=/[\w/\.]+
|
||||||
|
colour=green
|
||||||
|
count=more
|
||||||
|
|
||||||
|
this will match `/usr/bin`, `/usr/local/bin/`, `/etc/init.d/syslogd` and similar strings and paint it with green.
|
||||||
|
|
||||||
|
Another example:
|
||||||
|
|
||||||
|
regexp=^-{1,2}\s{0,1}$
|
||||||
|
colours=red
|
||||||
|
count=block
|
||||||
|
-
|
||||||
|
regexp=^\s{0,5}$
|
||||||
|
colours=default
|
||||||
|
count=unblock
|
||||||
|
|
||||||
|
this will turn all correctly formatted mail signatures red.
|
||||||
|
|
||||||
|
Regular expressions are evaluated from top to bottom, this allows nested and overlapped expressions. (e.g. you colour everything inside parentheses with one colour, and if a following expression matches the text inside parentheses, it will be also coloured).
|
||||||
|
|
||||||
|
# Typical usage:
|
||||||
|
|
||||||
|
grcat conf.log < /var/log/syslog
|
||||||
|
/usr/sbin/traceroute www.linux.org | grcat conf.traceroute
|
||||||
|
grcat conf.esperanto < Fundamento.txt | less -r
|
||||||
|
|
||||||
|
To facilitate the use, command `grc` acts as frontend for `grcat`, automatically choosing the configuration files, so you can write:
|
||||||
|
|
||||||
|
grc netstat
|
||||||
|
grc ping hostname
|
||||||
|
grc tail /var/log/syslog
|
||||||
|
|
||||||
|
etc...
|
||||||
|
|
||||||
|
`grc` will execute command command with optional parameters piping its stdout into `grcat`.
|
||||||
|
|
||||||
|
Configuration file for `grcat` is determined by `/etc/grc.conf` or `~/.grc/grc.conf` file.
|
||||||
|
|
||||||
|
Format of `/etc/grc.conf` or `~/.grc/grc.conf:` each entry consists of 2 lines, between entries there can be any number of empty lines or lines beginning with # (comments).
|
||||||
|
|
||||||
|
First line is regular expression, second line the name of configuration file for `grcat`.
|
||||||
|
|
||||||
|
Configuration file after the first regular expression matching the rest of line after `grc` will be passed to grcat as its configuration file
|
||||||
|
|
||||||
|
For example, if you have
|
||||||
|
|
||||||
|
# log file
|
||||||
|
\b\w+\b.*log\b
|
||||||
|
conf.log
|
||||||
|
|
||||||
|
# traceroute command
|
||||||
|
(^|[/\w\.]+/)traceroute\s
|
||||||
|
conf.traceroute
|
||||||
|
|
||||||
|
in your `/etc/grc.conf`, then typing `grc cat /var/log/syslog` will use `conf.log` to colourise the output, `grc /usr/sbin/traceroute www.linux.org` will use `conf.traceroute`.
|
||||||
|
|
||||||
|
## Miscellaneous remarks:
|
||||||
|
|
||||||
|
You should get yourself familiar with regular expressions. Good reading is
|
||||||
|
at <http://docs.python.org/dev/howto/regex.html>
|
||||||
|
|
||||||
|
The program is not yet optimized for speed. There are places that can
|
||||||
|
give a big boost if optimized.
|
||||||
|
|
||||||
|
Regular expressions are handled by python, it means that they may be
|
||||||
|
slightly different from those you know from perl or grep. It's not my
|
||||||
|
fault in that case.
|
||||||
|
|
||||||
|
Colours are one of:
|
||||||
|
|
||||||
|
none, default, bold, underline, blink, reverse, concealed,
|
||||||
|
black, green, yellow, blue, magenta, cyan, white,
|
||||||
|
on_black, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white
|
||||||
|
beep
|
||||||
|
|
||||||
|
`on_red` means that the background (instead of foreground) is painted
|
||||||
|
with red etc...
|
||||||
|
|
||||||
|
Additional colours can be: `dark, italic, rapidblink, strikethrough`.
|
||||||
|
These are supported only on some terminals, so if you want to write
|
||||||
|
portable configuration files, avoid uing them (idea by James Rowe).
|
||||||
|
|
||||||
|
there can be more attributes per line (separated by space), e.g.
|
||||||
|
|
||||||
|
# this is probably a pathname
|
||||||
|
regexp=/[\w/\.]+
|
||||||
|
colours=bold blink green
|
||||||
|
count=more
|
||||||
|
|
||||||
|
will display pathnames in bold blinking green
|
||||||
|
|
||||||
|
## Python 2 & 3 compatibility
|
||||||
|
|
||||||
|
both grc and grcat are targetted towards python3 now; there is an attempt at python2 compatibility, meaning that both grc and grcat will run under both python2 and python3. However, all the regular expressions are strings, and grcat works on string input (not bytes).
|
||||||
|
|
||||||
|
## Hints
|
||||||
|
|
||||||
|
Following commands will display nice coloured log in virtual console 12:
|
||||||
|
|
||||||
|
If you have GNU tail:
|
||||||
|
|
||||||
|
tail --follow=name /var/log/syslog | grcat conf.log >/dev/tty12
|
||||||
|
|
||||||
|
or, if you have recent BSD tail:
|
||||||
|
|
||||||
|
tail -F /var/log/syslog | grcat conf.log >/dev/tty12
|
||||||
|
|
||||||
|
## Automatic aliases
|
||||||
|
|
||||||
|
You can start using grc automatically with supported commands. The following assumes that `grc.<sh|zsh|fish>` is in `/etc`. The location may differ (i. e. `/usr/local/etc` when installed with [homebrew](https://formulae.brew.sh/formula/grc)); or the `grc.sh` can be placed into `/etc/profile.d/` (this is in fact the default). Be aware this is somewhat invasive and better test it before deploying.
|
||||||
|
|
||||||
|
### Bash
|
||||||
|
|
||||||
|
To set aliases for supported commands, append to your `~/.bashrc`:
|
||||||
|
|
||||||
|
GRC_ALIASES=true
|
||||||
|
[[ -s "/etc/profile.d/grc.sh" ]] && source /etc/grc.sh
|
||||||
|
|
||||||
|
If the file `/etc/default/grc` exists, it is sourced first, therefore you can place a line saying `GRC_ALIASES=true` there.
|
||||||
|
|
||||||
|
### ZSH
|
||||||
|
|
||||||
|
Or for zsh users, append to `~/.zshrc`:
|
||||||
|
|
||||||
|
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
|
||||||
|
|
||||||
|
### Fish
|
||||||
|
|
||||||
|
Add to `~/.config/fish/config.fish` or in a new file in `~/.config/fish/conf.d/`:
|
||||||
|
|
||||||
|
source /usr/local/etc/grc.fish
|
||||||
|
|
||||||
|
## Dynamic aliases
|
||||||
|
|
||||||
|
By running the follow code, it will check to see what programs are already installed on your OS (based on your `$PATH`), and echo out the result. This could then be added to your shell resource file as a one off. Alternatively, by removing the `echo` in the code, it could be placed into your shell resource file directly, and it will create the necessarily aliases each time:
|
||||||
|
|
||||||
|
for cmd in g++ gas head make ld ping6 tail traceroute6 $( ls /usr/share/grc/ ); do
|
||||||
|
cmd="${cmd##*conf.}"
|
||||||
|
type "${cmd}" >/dev/null 2>&1 && echo alias "${cmd}"="$( which grc ) --colour=auto ${cmd}"
|
||||||
|
done
|
25
_grc
Normal file
25
_grc
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#compdef grc
|
||||||
|
|
||||||
|
setopt localoptions extended_glob
|
||||||
|
|
||||||
|
local environ e cmd
|
||||||
|
local -a args
|
||||||
|
local -a _comp_priv_prefix
|
||||||
|
|
||||||
|
zstyle -a ":completion:${curcontext}:" environ environ
|
||||||
|
|
||||||
|
for e in "${environ[@]}"
|
||||||
|
do local -x "$e"
|
||||||
|
done
|
||||||
|
|
||||||
|
args=(
|
||||||
|
'(-e --stderr)'{-e,--stderr}'[redirect stderr; do not automatically redirect stdout]'
|
||||||
|
'(-s --stdout)'{-s,--stdout}'[redirect stdout; even with -e/--stderr]'
|
||||||
|
'(-c <name>--config=<name>)'{-c+,--config=-}'[use <name> as configuration file for grcat]:file:_files'
|
||||||
|
'--colour=-[colourize output]:colour:(on off auto)'
|
||||||
|
'(-h --help)'{-h,--help}'[display help message and exit]'
|
||||||
|
'--pty[run command in pseudotermnial (experimental)]'
|
||||||
|
'*::arguments:{ _normal }'
|
||||||
|
)
|
||||||
|
|
||||||
|
_arguments -s $args
|
46
colourfiles/conf.ant
Normal file
46
colourfiles/conf.ant
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# ant grc colorizer configuration
|
||||||
|
# BUILD FAILED
|
||||||
|
regexp=BUILD FAILED
|
||||||
|
colours=bold red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# BUILD SUCCESSFUL
|
||||||
|
regexp=^BUILD SUCCESSFUL
|
||||||
|
colours=bold green
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# Total time
|
||||||
|
regexp=^(Total time: )([\d]+.*)$
|
||||||
|
colours=yellow,bold magenta
|
||||||
|
count=more
|
||||||
|
===============
|
||||||
|
# some error
|
||||||
|
regexp=[\d]+ error[s]?
|
||||||
|
colours=red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# some warning
|
||||||
|
regexp=[\d]+ warning[s]?
|
||||||
|
colours=yellow
|
||||||
|
count=more
|
||||||
|
===============
|
||||||
|
# some error
|
||||||
|
regexp=[Ee]rror:
|
||||||
|
colours=red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# some warning
|
||||||
|
regexp=[Ww]arning:
|
||||||
|
colours=yellow
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# project name
|
||||||
|
regexp=^[^:\s]+:$
|
||||||
|
colours=green
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# products
|
||||||
|
regexp=[^/]+\.[ewrj]ar$
|
||||||
|
colours=blue
|
||||||
|
count=more
|
||||||
|
|
31
colourfiles/conf.blkid
Normal file
31
colourfiles/conf.blkid
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Blk
|
||||||
|
regexp=^(/dev/)(.+):\s
|
||||||
|
colours=default,green,bright_green
|
||||||
|
======
|
||||||
|
# Blk mapper
|
||||||
|
regexp=^/dev/(mapper/)(.+):\s
|
||||||
|
colours=unchanged,underline green,bright_green
|
||||||
|
======
|
||||||
|
# UUID
|
||||||
|
regexp=\sUUID="([^"]+)
|
||||||
|
colours=bold yellow,blue
|
||||||
|
======
|
||||||
|
#UUID_SUB
|
||||||
|
regexp=\sUUID_SUB="([^"]+)
|
||||||
|
colours=green,bright_green
|
||||||
|
======
|
||||||
|
# TYPE
|
||||||
|
regexp=TYPE="([^"]+)
|
||||||
|
colours=bold cyan,cyan
|
||||||
|
======
|
||||||
|
# LABEL
|
||||||
|
regexp=\sLABEL="([^"]+)
|
||||||
|
colours=bold bright_cyan,bright_cyan
|
||||||
|
======
|
||||||
|
# PARTLABEL
|
||||||
|
regexp=\sPARTLABEL="([^"]+)
|
||||||
|
colours=bold green,red
|
||||||
|
# PARTUUID
|
||||||
|
regexp=PARTUUID="([^"]+)
|
||||||
|
colours=green,magenta
|
||||||
|
|
11
colourfiles/conf.common
Normal file
11
colourfiles/conf.common
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Green Words
|
||||||
|
regexp=[Ee]nabled?|[Oo]k|[Rr]unning|[Tt]rue
|
||||||
|
colour=green
|
||||||
|
-
|
||||||
|
# Red Words
|
||||||
|
regexp=[Dd]isabled?|[Ee]rrors?|[Ss]topped|[Ff]alse
|
||||||
|
colour=red
|
||||||
|
-
|
||||||
|
# Yellow Words
|
||||||
|
regexp=[Ww]arning
|
||||||
|
colour=yellow
|
27
colourfiles/conf.configure
Normal file
27
colourfiles/conf.configure
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# cache functions
|
||||||
|
regexp=\b(loading|updating|creating) cache\b
|
||||||
|
colours=yellow bold
|
||||||
|
.........
|
||||||
|
# checking
|
||||||
|
regexp=\bchecking\s*(for|if|whether|command|how|that)?(\s*to)?\b
|
||||||
|
colours=bold blue
|
||||||
|
.........
|
||||||
|
# result is complex
|
||||||
|
regexp=\.\.\. .*$
|
||||||
|
colours=bold yellow
|
||||||
|
.........
|
||||||
|
# check succeeded
|
||||||
|
regexp=\.\.\.( \(cached\))? yes$
|
||||||
|
colours=bold cyan
|
||||||
|
.........
|
||||||
|
# check did not succeed
|
||||||
|
regexp=\.\.\.( \(cached\))? no$
|
||||||
|
colours=bold red
|
||||||
|
.........
|
||||||
|
# ... should be normal
|
||||||
|
regexp=\.\.\.
|
||||||
|
colours=default
|
||||||
|
.........
|
||||||
|
# creating stuff
|
||||||
|
regexp=\bcreating\b
|
||||||
|
colours=green
|
72
colourfiles/conf.curl
Normal file
72
colourfiles/conf.curl
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# curl grc colorizer configuration
|
||||||
|
===
|
||||||
|
# Outgoing Headers
|
||||||
|
regexp=^(>) ([\w\-]+): (.*)
|
||||||
|
colours=default, bright_green, bright_blue, bright_cyan
|
||||||
|
===
|
||||||
|
# Incoming Headers
|
||||||
|
regexp=^(<) ([\w\-]+): (.*)
|
||||||
|
colours=default, bright_yellow, bright_blue, bright_cyan
|
||||||
|
===
|
||||||
|
# Incoming 200
|
||||||
|
regexp=(HTTP/[\d\.]+) 2\d{2} [\w\s]+
|
||||||
|
colours=bright_green on_blue, bright_white on_blue
|
||||||
|
===
|
||||||
|
# Incoming 300
|
||||||
|
regexp=(HTTP/[\d\.]+) 3\d{2}[\w\s]*
|
||||||
|
colours=bright_green on_blue, bright_white on_blue
|
||||||
|
===
|
||||||
|
# Incoming 400
|
||||||
|
regexp=(HTTP/[\d\.]+) 4\d{2} [\w\s]+
|
||||||
|
colours=bright_red on_blue, bright_white on_blue
|
||||||
|
===
|
||||||
|
# Incoming 500
|
||||||
|
regexp=(HTTP/[\d\.]+) 5\d{2} [\w\s]+
|
||||||
|
colours=bright_red on_blue, bright_white on_blue
|
||||||
|
===
|
||||||
|
# Server certificate
|
||||||
|
regexp=\* (Server certificate):
|
||||||
|
colours=magenta, bright_magenta
|
||||||
|
===
|
||||||
|
# Certificate Headers
|
||||||
|
regexp=\* ([a-z][\w\s\d]+): (.*)
|
||||||
|
colours=magenta, bright_blue, bright_cyan
|
||||||
|
===
|
||||||
|
# SSL certificate problem
|
||||||
|
regexp=SSL certificate problem:( .*)
|
||||||
|
colours=bright_red, bright_red
|
||||||
|
===
|
||||||
|
# SSL certificate verify result: self signed certificate (18), continuing anyway.
|
||||||
|
regexp=SSL certificate verify result:(.*)
|
||||||
|
colours=bright_magenta, bright_yellow
|
||||||
|
===
|
||||||
|
# SSL certificate verify ok.
|
||||||
|
regexp=SSL certificate verify (ok)
|
||||||
|
colours=bright_magenta, bright_green
|
||||||
|
===
|
||||||
|
# Verbose Logging
|
||||||
|
regexp=^([{}\*])\s
|
||||||
|
colours=default, bright_magenta
|
||||||
|
count=more
|
||||||
|
===
|
||||||
|
# Outgoing
|
||||||
|
regexp=^>\s
|
||||||
|
colours=bright_green
|
||||||
|
count=more
|
||||||
|
===
|
||||||
|
# Incoming
|
||||||
|
regexp=^<\s
|
||||||
|
colours=bright_yellow
|
||||||
|
count=more
|
||||||
|
===
|
||||||
|
# SSL connection
|
||||||
|
regexp= (SSL connection) using (.*) / (.*)
|
||||||
|
colours=magenta, bright_magenta, bright_magenta, bright_magenta
|
||||||
|
===
|
||||||
|
# Connected to...
|
||||||
|
regexp=(Connected) to (.*) \(([\d\.]+)\) port (\d+)
|
||||||
|
colours=magenta, bright_magenta, bright_magenta, bright_magenta, bright_magenta
|
||||||
|
===
|
||||||
|
# Outgoing METHOD
|
||||||
|
regexp=(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH) (/.*) HTTP/[\d\.]+
|
||||||
|
colours=bright_white on_blue, bright_white on_blue, bright_yellow on_blue
|
44
colourfiles/conf.df
Normal file
44
colourfiles/conf.df
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# FS
|
||||||
|
#regexp=^.*?\s
|
||||||
|
regexp=^(?!Filesystem)(\/[-\w\d.]+)+\s
|
||||||
|
colours=blue,bold blue
|
||||||
|
======
|
||||||
|
# Size 'K'
|
||||||
|
regexp=\s\d*[.,]?\d(K|B)i?\s|\b\d{1,3}\b
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M'
|
||||||
|
regexp=\s\d*[.,]?\dMi?\s|\b\d{4,6}\b
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Size 'G'
|
||||||
|
regexp=\s\d*[.,]?\dGi?\s|\b\d{7,9}\b
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Size 'T'
|
||||||
|
regexp=\s\d*[.,]?\dTi?\s|\b\d{10,12}\b
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# Mounted on
|
||||||
|
regexp=\/$|(\/[-\w\d. ]+)+$
|
||||||
|
colours=green,bold green
|
||||||
|
======
|
||||||
|
# Use 0-60%
|
||||||
|
regexp=\s[1-6]?[0-9]%\s
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Use 70-89%
|
||||||
|
regexp=\s[78][0-9]%\s
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Use 90-97%
|
||||||
|
regexp=\s9[0-7]%\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Use 98-100%
|
||||||
|
regexp=\s9[89]%|100%\s
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# tmpfs lines
|
||||||
|
regexp=^tmpfs.*
|
||||||
|
colours=bright_black
|
23
colourfiles/conf.dig
Normal file
23
colourfiles/conf.dig
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#domain
|
||||||
|
regexp=[\S]+\.
|
||||||
|
colours=bright_magenta
|
||||||
|
-
|
||||||
|
#line
|
||||||
|
regexp=^(\S+).*?(\d+)\t(\w+)\t(\w+)\t
|
||||||
|
colours=unchanged,magenta,red,yellow,cyan
|
||||||
|
-
|
||||||
|
#ip4 address
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
#ipv6
|
||||||
|
regexp=\t(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
|
||||||
|
colours=dark green
|
||||||
|
-
|
||||||
|
#comments
|
||||||
|
regexp=^;;[\s\w]+
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
#Title
|
||||||
|
regexp=; <<>> DiG.* <<>> (\S+)
|
||||||
|
colours=default,bold magenta
|
11
colourfiles/conf.dnf
Normal file
11
colourfiles/conf.dnf
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Install
|
||||||
|
regexp=^Installing:
|
||||||
|
colour=bold green
|
||||||
|
-
|
||||||
|
# Main
|
||||||
|
regexp=^Upgrading:
|
||||||
|
colour=bold yellow
|
||||||
|
-
|
||||||
|
# Main
|
||||||
|
regexp=^Removing:
|
||||||
|
colour=bold red
|
23
colourfiles/conf.docker-machinels
Normal file
23
colourfiles/conf.docker-machinels
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# IMAGE
|
||||||
|
regexp=^(?!NAME|error)(\S+)\s+(\S+)\s+(\S+)
|
||||||
|
colours=default,bold yellow,bold black,cyan
|
||||||
|
======
|
||||||
|
# Running
|
||||||
|
regexp=\sRunning\s
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Stopped
|
||||||
|
regexp=\sStopped\s
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# Error
|
||||||
|
regexp=\sError\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# PORTS
|
||||||
|
regexp=((?:\d{1,3}\.){3}\d{1,3}):(\d+)
|
||||||
|
colours=default,blue,bold blue
|
||||||
|
======
|
||||||
|
# Error Line
|
||||||
|
regexp=^error\s(?:\w+\s)+([a-z\-_0-9]+):(.*)$
|
||||||
|
colours=red,yellow,bold red
|
63
colourfiles/conf.dockerimages
Normal file
63
colourfiles/conf.dockerimages
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# REPO, TAG, IMAGE ID
|
||||||
|
regexp=^([a-z]+\/?[^\s]+)\s+([^\s]+)\s+(\w+)
|
||||||
|
colours=default,bold white,bright_cyan,bright_black
|
||||||
|
=====
|
||||||
|
# latest
|
||||||
|
regexp=(?<=\s)latest(?=\s+)
|
||||||
|
colours=dark cyan
|
||||||
|
=====
|
||||||
|
# REPOSITORY (Image name)
|
||||||
|
regexp=^(?:(\S+)\/)*(\S+)\s
|
||||||
|
colours=default,yellow,bright_white
|
||||||
|
=====
|
||||||
|
# images without name
|
||||||
|
regexp=^<none>.*$
|
||||||
|
colours=bold red
|
||||||
|
=====
|
||||||
|
# images without tag
|
||||||
|
regexp=\s+(<none>)\s+
|
||||||
|
colours=unchanged,bold red
|
||||||
|
=====
|
||||||
|
# Size 'K'
|
||||||
|
regexp=(?<=\s)\d+[.,]?\d*\s?(KB?|B)
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M', 2 digits
|
||||||
|
regexp=(?<=\s)\d{1,2}[.,]?\d*\s?MB?
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M' 3+ digits
|
||||||
|
regexp=(?<=\s)\d{3,4}[.,]?\d*\s?MB?
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Size 'G'
|
||||||
|
regexp=(?<=\s)\d+[.,]?\d*\s?GB?
|
||||||
|
colours=red
|
||||||
|
=====
|
||||||
|
# CREATED seconds/minutes
|
||||||
|
regexp=[\da-f]{12}\s+((?:About a|\d+) (?:seconds?|minutes?) ago)
|
||||||
|
colours=unchanged,on_green bold white
|
||||||
|
======
|
||||||
|
# CREATED About a minute ago
|
||||||
|
regexp=\s+(About a minute ago)\s\w+
|
||||||
|
colours=unchanged,on_green bold white
|
||||||
|
======
|
||||||
|
# CREATED hours
|
||||||
|
regexp=\s+(\d+\shours\s\w+)
|
||||||
|
colours=unchanged,bright_green
|
||||||
|
======
|
||||||
|
# CREATED days
|
||||||
|
regexp=\s+(\d+\sdays\s\w+)
|
||||||
|
colours=unchanged,green
|
||||||
|
======
|
||||||
|
# CREATED weeks
|
||||||
|
regexp=\s+(\d+\sweeks\s\w+)
|
||||||
|
colours=unchanged,yellow
|
||||||
|
======
|
||||||
|
# CREATED months
|
||||||
|
regexp=\s+(\d+\smonths\s\w+)
|
||||||
|
colours=unchanged,red
|
||||||
|
=====
|
||||||
|
# HEADERS
|
||||||
|
regexp=(?:\s|^)(REPOSITORY|TAG|IMAGE ID|CREATED|SIZE)(?:\s|$)
|
||||||
|
colours=default,underline
|
19
colourfiles/conf.dockerinfo
Normal file
19
colourfiles/conf.dockerinfo
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Main Nodes
|
||||||
|
regexp=^(\S[^:]+):\s?(.*)?$
|
||||||
|
colours=default,cyan
|
||||||
|
======
|
||||||
|
# Sub Nodes
|
||||||
|
regexp=^\s([^:]+):\s?(.*)?$
|
||||||
|
colours=default,magenta
|
||||||
|
======
|
||||||
|
# Warning
|
||||||
|
regexp=WARNING:\s(.+)$
|
||||||
|
colours=bold yellow, yellow
|
||||||
|
======
|
||||||
|
# devicemapper
|
||||||
|
regexp=devicemapper$
|
||||||
|
colours=bright_red
|
||||||
|
-
|
||||||
|
# loop-lvm
|
||||||
|
regexp=: (/var/lib/docker/devicemapper/devicemapper/(?:meta)?data)
|
||||||
|
colours=default,bright_red
|
23
colourfiles/conf.dockernetwork
Normal file
23
colourfiles/conf.dockernetwork
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# HEADERS
|
||||||
|
regexp=(?:\s|^)(NETWORK ID|NAME|DRIVER|SCOPE)(?:\s|$)
|
||||||
|
colours=default,underline
|
||||||
|
-
|
||||||
|
# Line
|
||||||
|
regexp=^(?!NETWORK)(\S+)\s+(\S+)
|
||||||
|
colours=unchanged,bright_black,bright_blue
|
||||||
|
-
|
||||||
|
# Driver BRIDGE
|
||||||
|
regexp=^\S+\s+\S+\s+(bridge)
|
||||||
|
colours=unchanged,bright_cyan
|
||||||
|
-
|
||||||
|
# Driver HOST
|
||||||
|
regexp=^\S+\s+\S+\s+(host)
|
||||||
|
colours=unchanged,cyan
|
||||||
|
-
|
||||||
|
# Driver OVERLAY
|
||||||
|
regexp=^\S+\s+\S+\s+(overlay)
|
||||||
|
colours=unchanged,magenta
|
||||||
|
-
|
||||||
|
# Driver NULL
|
||||||
|
regexp=^\S+\s+\S+\s+(null)
|
||||||
|
colours=unchanged,on_red white
|
53
colourfiles/conf.dockerps
Normal file
53
colourfiles/conf.dockerps
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# HEADERS
|
||||||
|
regexp=(?:\s|^)(CONTAINER ID|IMAGE|COMMAND|CREATED|STATUS|PORTS|NAMES)(?:\s|$)
|
||||||
|
colours=default,underline
|
||||||
|
======
|
||||||
|
# IMAGE NAME (as docker image)
|
||||||
|
regexp=\s{2,}(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)(:\S+)?\s{2,}\"
|
||||||
|
colours=unchanged,yellow,bright_white,cyan
|
||||||
|
======
|
||||||
|
# IMAGE
|
||||||
|
regexp=^(?!CONTAINER)(\w+)\s+([^\s]+)\s+(".*")\s+(.*(?=(?:Up|Exited|Created|Restarting)))
|
||||||
|
colours=unchanged,bright_black,unchanged,bright_black,cyan
|
||||||
|
======
|
||||||
|
# Statuses - Created
|
||||||
|
regexp=\sCreated\s
|
||||||
|
colours=blue
|
||||||
|
======
|
||||||
|
# Statuses
|
||||||
|
# https://github.com/docker/docker/blob/e5a3f86e447dd659da3c2e759f3c088a0bfcfe3d/container/state.go#L40
|
||||||
|
# Up
|
||||||
|
regexp=(?:\s{2}|^)(?:Up|Restarting)(?:(?:\s[\w,\d]+)+)?
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Health - healthy
|
||||||
|
regexp=\s\(healthy\)
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Health - starting
|
||||||
|
regexp=\s\(health: starting\)
|
||||||
|
colours=bold yellow
|
||||||
|
======
|
||||||
|
# Health - unhealthy
|
||||||
|
regexp=\s\(unhealthy\)
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# Statuses - Exited
|
||||||
|
regexp=Exited\s.(\d+).+?(?=\s{2,})
|
||||||
|
colours=bold red,red
|
||||||
|
======
|
||||||
|
# Statuses - Restarting
|
||||||
|
regexp=Restarting\s.(\d+).+?(?=\s{2,})
|
||||||
|
colours=bold blue
|
||||||
|
======
|
||||||
|
# Ip Addresses
|
||||||
|
regexp=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(\:)?
|
||||||
|
colours=default,blue,default
|
||||||
|
======
|
||||||
|
# Ports
|
||||||
|
regexp=(\d{1,5})?(-)?(\d{1,5})?(->)?(\d{1,5})(-)?(\d{1,5})?(\/)(tcp|udp)
|
||||||
|
colours=default,bright_green,default,bright_green, default, bright_green,default,bright_green,default,cyan
|
||||||
|
======
|
||||||
|
# NAMES
|
||||||
|
regexp=(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)$
|
||||||
|
colours=default,yellow,on_blue white
|
43
colourfiles/conf.dockerpull
Normal file
43
colourfiles/conf.dockerpull
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Header
|
||||||
|
regexp=Using default tag: (\w+)
|
||||||
|
colours=default,bold yellow
|
||||||
|
======
|
||||||
|
# Image
|
||||||
|
regexp=Pulling from ([^\s]+)
|
||||||
|
colours=default,bold green
|
||||||
|
======
|
||||||
|
# HASH
|
||||||
|
regexp=^\w{12}:
|
||||||
|
colours=default
|
||||||
|
======
|
||||||
|
# 1_Pulling fs layer
|
||||||
|
regexp=Pulling fs layer
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# 2_Waiting
|
||||||
|
regexp=Waiting
|
||||||
|
colours=bright_yellow
|
||||||
|
======
|
||||||
|
# 3_Verifying Checksum
|
||||||
|
regexp=Verifying Checksum
|
||||||
|
colours=bold yellow
|
||||||
|
======
|
||||||
|
# 4_Download complete
|
||||||
|
regexp=Download complete
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# 5_Pull Complete
|
||||||
|
regexp=Pull complete
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Already exists
|
||||||
|
regexp=Already exists
|
||||||
|
colours=blue
|
||||||
|
======
|
||||||
|
# Status Updated
|
||||||
|
regexp=Image is up to date
|
||||||
|
colours=bold green
|
||||||
|
======
|
||||||
|
# Status Downloaded
|
||||||
|
regexp=Downloaded newer image
|
||||||
|
colours=bold blue
|
27
colourfiles/conf.dockersearch
Normal file
27
colourfiles/conf.dockersearch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# NAMES
|
||||||
|
regexp=^(?:([a-z\-_0-9]+)\/)*(\S+)\s(?!DESCRIPTION)
|
||||||
|
colours=default,yellow,bold yellow
|
||||||
|
-
|
||||||
|
# Title
|
||||||
|
regexp=^NAME.*
|
||||||
|
colours=default
|
||||||
|
-
|
||||||
|
# Oficial
|
||||||
|
regexp=\[OK\](?!$)
|
||||||
|
colours=bold green
|
||||||
|
-
|
||||||
|
# Automated
|
||||||
|
regexp=\[OK\]$
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
# 1 digit Star
|
||||||
|
regexp=\s{3,}(\d)\s{3,}
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
# 2 digits Stars
|
||||||
|
regexp=\s{3,}(\d{2})\s{3,}
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
# 3 digits Stars
|
||||||
|
regexp=\s{3,}(\d{3,})\s{3,}
|
||||||
|
colours=green
|
11
colourfiles/conf.dockerversion
Normal file
11
colourfiles/conf.dockerversion
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Values
|
||||||
|
regexp=^\s([^:]+):(.+)$
|
||||||
|
colours=default,cyan
|
||||||
|
======
|
||||||
|
# Client
|
||||||
|
regexp=^(Client):
|
||||||
|
colours=default,bold cyan
|
||||||
|
======
|
||||||
|
# Server
|
||||||
|
regexp=^(Server):
|
||||||
|
colours=default,bold green
|
39
colourfiles/conf.du
Normal file
39
colourfiles/conf.du
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Cannot read STDERR, not working
|
||||||
|
regexp=^du.*
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Path
|
||||||
|
regexp=\s+[\.\/]+([\w\s\-\_\.]+)(\/.*)?$
|
||||||
|
colours=default,bold blue,blue
|
||||||
|
======
|
||||||
|
# Size 'K'
|
||||||
|
regexp=^\d{1,3}\s
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
regexp=^ ?\d*[.,]?\dKi?\s
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M'
|
||||||
|
regexp=^\d{4,6}\s
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
regexp=^ ?\d*[.,]?\dMi?\s
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Size 'G'
|
||||||
|
regexp=^\d{7,9}\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
regexp=^ ?\d*[.,]?\dGi?\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Size 'T'
|
||||||
|
regexp=^\d{10,12}\s
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
regexp=^ ?\d*[.,]?\dTi?\s
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# Total
|
||||||
|
regexp=(.*)\s+(total)$
|
||||||
|
colours=bold yellow on_blue
|
4
colourfiles/conf.dummy
Normal file
4
colourfiles/conf.dummy
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# for testing purposes, do match but do not change anything
|
||||||
|
regexp=([a-g]+)
|
||||||
|
colour=''
|
||||||
|
|
3
colourfiles/conf.env
Normal file
3
colourfiles/conf.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Main
|
||||||
|
regexp=^([^=]+)(=)(.*)$
|
||||||
|
colours=default,cyan,white,yellow
|
35
colourfiles/conf.fdisk
Normal file
35
colourfiles/conf.fdisk
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Error
|
||||||
|
regexp=fdisk: cannot open ([^:]+).*$
|
||||||
|
colours=red, bold red
|
||||||
|
-
|
||||||
|
# Disk
|
||||||
|
regexp=^(Disk) (?:\/([^\/: ]+))+
|
||||||
|
colours=yellow,on_yellow black,bold yellow
|
||||||
|
-
|
||||||
|
# Boot?
|
||||||
|
regexp=\*\s\s\s
|
||||||
|
colours=on_red bold white
|
||||||
|
-
|
||||||
|
# Partitions
|
||||||
|
regexp=^(?:\/([^\/: ]+))+
|
||||||
|
colours=green,bold green
|
||||||
|
-
|
||||||
|
# Type
|
||||||
|
regexp=type: (.*)$
|
||||||
|
colours=unchanged,bold cyan
|
||||||
|
-
|
||||||
|
# ID
|
||||||
|
regexp=identifier: (.*)$
|
||||||
|
colours=unchanged, cyan
|
||||||
|
-
|
||||||
|
# Size 'K'
|
||||||
|
regexp=\s\d*[.,]?\d*\s?Ki?B?
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
# Size 'M'
|
||||||
|
regexp=\s\d*[.,]?\d*\s?Mi?B?
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
# Size 'G'
|
||||||
|
regexp=\s\d+[.,]?\d*\s?Gi?B?
|
||||||
|
colours=red
|
27
colourfiles/conf.findmnt
Normal file
27
colourfiles/conf.findmnt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Devices
|
||||||
|
regexp=\s\/dev(?:\/([^\/ ]+))+
|
||||||
|
colours=green, bold green
|
||||||
|
-
|
||||||
|
# Mount Path
|
||||||
|
regexp=(?<=─|-)(?:\/([^\/ ]+))+
|
||||||
|
colours=unchanged,bold yellow
|
||||||
|
-
|
||||||
|
# RW
|
||||||
|
regexp=(?:\s)rw
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
# RO
|
||||||
|
regexp=(?:\s)ro
|
||||||
|
colours=bold green
|
||||||
|
-
|
||||||
|
# Like comment, leave at end always
|
||||||
|
regexp=^.*(?=cgroup|tmpfs).*$
|
||||||
|
colours=bright_black
|
||||||
|
-
|
||||||
|
# Common Types
|
||||||
|
regexp=\b(ext\d|xfs|btrfs|nfs)\b
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
# MS Types
|
||||||
|
regexp=\b(fat|vfat|ntfs|msdos)\b
|
||||||
|
colours=on_cyan white
|
27
colourfiles/conf.free
Normal file
27
colourfiles/conf.free
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Size 'K'
|
||||||
|
regexp=\s\d*[.,]?\dKi?|\b\d{1,3}\b
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M'
|
||||||
|
regexp=\s\d*[.,]?\dMi?|\b\d{4,6}\b
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Size 'G'
|
||||||
|
regexp=\s\d*[.,]?\dGi?|\b\d{7,9}\b
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Size 'T'
|
||||||
|
regexp=\s\d*[.,]?\dTi?|\b\d{10,12}\b
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# Mem
|
||||||
|
regexp=^Mem
|
||||||
|
colours=bold cyan
|
||||||
|
======
|
||||||
|
# Swap
|
||||||
|
regexp=^Swap
|
||||||
|
colours=bold magenta
|
||||||
|
======
|
||||||
|
# Zero
|
||||||
|
regexp=\s+0\w?(\s|$)
|
||||||
|
colours=green
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
regexp=\bgcc\b
|
regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
|
||||||
colours=yellow
|
colours=white bold
|
||||||
count=more
|
count=once
|
||||||
.........
|
.........
|
||||||
#
|
#
|
||||||
regexp=^[^:\s]*?:\d+:
|
regexp=^[^:\s]*?:\d+:
|
||||||
@ -15,6 +15,10 @@ count=once
|
|||||||
regexp=\`[A-Za-z0-9_():&*]+( const)?\'
|
regexp=\`[A-Za-z0-9_():&*]+( const)?\'
|
||||||
colours=magenta
|
colours=magenta
|
||||||
.........
|
.........
|
||||||
|
# compilation method modifiers
|
||||||
|
regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
|
||||||
|
colours=yellow
|
||||||
|
.........
|
||||||
# -O
|
# -O
|
||||||
regexp=\-O\d
|
regexp=\-O\d
|
||||||
colours=green
|
colours=green
|
||||||
@ -27,7 +31,7 @@ colours=yellow
|
|||||||
# stderr to grcat
|
# stderr to grcat
|
||||||
#
|
#
|
||||||
# warning
|
# warning
|
||||||
regexp=warning:.*
|
regexp=[Ww]arning[:\b]
|
||||||
colours=white
|
colours=white
|
||||||
.........
|
.........
|
||||||
regexp=warning:
|
regexp=warning:
|
||||||
@ -35,7 +39,7 @@ colours=bold yellow
|
|||||||
count=once
|
count=once
|
||||||
.........
|
.........
|
||||||
# error
|
# error
|
||||||
regexp=error:.*
|
regexp=[Ee]rror[:\b]
|
||||||
colours=bold white
|
colours=bold white
|
||||||
.........
|
.........
|
||||||
regexp=error:
|
regexp=error:
|
31
colourfiles/conf.getfacl
Normal file
31
colourfiles/conf.getfacl
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Header file
|
||||||
|
regexp=^\#\sfile:\s(\S+)
|
||||||
|
colours=cyan,bold
|
||||||
|
-
|
||||||
|
# Header owner
|
||||||
|
regexp=^\#\sowner:\s(\S+)
|
||||||
|
colours=cyan,bold green
|
||||||
|
-
|
||||||
|
# Header group
|
||||||
|
regexp=^\#\sgroup:\s(\S+)
|
||||||
|
colours=cyan,bold yellow
|
||||||
|
-
|
||||||
|
# user
|
||||||
|
regexp=(?:^|:)user:([^:]+)?:(\S+)
|
||||||
|
colours=green,on_green black,bright_green
|
||||||
|
-
|
||||||
|
# group
|
||||||
|
regexp=(?:^|:)group:([^:]+)?:(\S+)
|
||||||
|
colours=yellow,on_yellow black,bright_yellow
|
||||||
|
-
|
||||||
|
# other
|
||||||
|
regexp=(?:^|:)other:([^:]+)?:(\S+)
|
||||||
|
colours=red,on_red black,bright_red
|
||||||
|
-
|
||||||
|
# mask
|
||||||
|
regexp=(?:^|:)mask:([^:]+)?:(\S+)
|
||||||
|
colours=blue,on_blue black,bright_blue
|
||||||
|
-
|
||||||
|
# default:
|
||||||
|
regexp=^default
|
||||||
|
colours=on_blue bold white
|
15
colourfiles/conf.getsebool
Normal file
15
colourfiles/conf.getsebool
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Name
|
||||||
|
regexp=^\S+
|
||||||
|
colours=default
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=-->
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=\s(off)
|
||||||
|
colours=default,bright_red
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=\s(on)
|
||||||
|
colours=default,bright_green
|
21
colourfiles/conf.go-test
Normal file
21
colourfiles/conf.go-test
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# go-test grc colorizer configuration
|
||||||
|
regexp==== RUN .*
|
||||||
|
colour=bright_blue
|
||||||
|
-
|
||||||
|
regexp=--- PASS: .* (\(\d+\.\d+s\))
|
||||||
|
colour=green, yellow
|
||||||
|
-
|
||||||
|
regexp=^PASS$
|
||||||
|
colour=bold white on_green
|
||||||
|
-
|
||||||
|
regexp=^(ok|FAIL)\s+.*
|
||||||
|
colour=default, magenta
|
||||||
|
-
|
||||||
|
regexp=--- FAIL: .* (\(\d+\.\d+s\))
|
||||||
|
colour=red, yellow
|
||||||
|
-
|
||||||
|
regexp=^FAIL$
|
||||||
|
colour=bold white on_red
|
||||||
|
-
|
||||||
|
regexp=[^\s]+\.go(:\d+)?
|
||||||
|
colour=cyan
|
11
colourfiles/conf.id
Normal file
11
colourfiles/conf.id
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Groups
|
||||||
|
regexp=(\d+)\((\w+)\)
|
||||||
|
colours=unchanged,yellow,bold yellow
|
||||||
|
-
|
||||||
|
# User
|
||||||
|
regexp=uid.(\d+)\((\w+)\)
|
||||||
|
colours=unchanged,green,bold green
|
||||||
|
-
|
||||||
|
# SELinux
|
||||||
|
regexp=(\w+_u):(\w+_r):(\w+_t):([\w\-.:]+)
|
||||||
|
colours=unchanged,green,yellow,cyan,magenta
|
@ -16,7 +16,7 @@ regexp=\d+(\.\d+)?\s(T|G|M|K|)i?B
|
|||||||
colours=yellow
|
colours=yellow
|
||||||
=======
|
=======
|
||||||
# interface
|
# interface
|
||||||
regexp=^([a-z0-9]{2,}\d*):?\s
|
regexp=^([a-z0-9.]{2,}\d*):?\s
|
||||||
colours=bold green
|
colours=bold green
|
||||||
=======
|
=======
|
||||||
#ip disc
|
#ip disc
|
23
colourfiles/conf.iostat_sar
Normal file
23
colourfiles/conf.iostat_sar
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Devices
|
||||||
|
regexp=^[\w\d-]+\s{2,}(?!%)
|
||||||
|
colours=bright_green
|
||||||
|
-
|
||||||
|
# Averages Title
|
||||||
|
regexp=\s+(%user)\s+(%nice)\s+(%system)\s+(%iowait)\s+(%steal)\s+(%idle)
|
||||||
|
colours=default,blue,cyan,magenta,bright_magenta,red,green
|
||||||
|
-
|
||||||
|
# Averages Numbers
|
||||||
|
regexp=\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)
|
||||||
|
colours=default,blue,cyan,magenta,bright_magenta,red,green
|
||||||
|
-
|
||||||
|
# Averages last line
|
||||||
|
regexp=^Average:.*$
|
||||||
|
colours=reverse
|
||||||
|
-
|
||||||
|
# High rates (4 digits)
|
||||||
|
regexp=\s\d{4}\.\d+
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
# High rates (5+ digits)
|
||||||
|
regexp=\s\d{5,}\.\d+
|
||||||
|
colours=bold red
|
44
colourfiles/conf.ip
Normal file
44
colourfiles/conf.ip
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# IP4
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
||||||
|
colours=bold yellow
|
||||||
|
-
|
||||||
|
|
||||||
|
# IP6
|
||||||
|
regexp=[0-9a-fA-F]{0,4}(\:\:?[0-9a-fA-F]{0,4})+?(\/\d{1,3})
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
|
||||||
|
# MAC
|
||||||
|
regexp=(\d|[a-f]){2}(\:(\d|[a-f]){2}){5}
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
|
||||||
|
# parenthesis
|
||||||
|
regexp=\(|\)
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
|
||||||
|
# dev wlan0 etc
|
||||||
|
regexp=dev \w+
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
|
||||||
|
# "default"
|
||||||
|
regexp=default
|
||||||
|
colours=on_blue
|
||||||
|
-
|
||||||
|
|
||||||
|
# ip range size
|
||||||
|
regexp=/\d{1,2}
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
|
||||||
|
# "linkdown"
|
||||||
|
regexp=linkdown
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
|
||||||
|
# "src"
|
||||||
|
regexp=src \S+
|
||||||
|
colours=on_magenta
|
||||||
|
|
59
colourfiles/conf.ipaddr
Normal file
59
colourfiles/conf.ipaddr
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# IP4
|
||||||
|
regexp=inet\s([^\/]+)\/(\d+)
|
||||||
|
colours=default,bold yellow,bold magenta
|
||||||
|
=====
|
||||||
|
# broadcast
|
||||||
|
regexp=brd\s([^}\s]+)
|
||||||
|
colours=default,dark cyan
|
||||||
|
=====
|
||||||
|
# dynamic
|
||||||
|
regexp=\bdynamic\b
|
||||||
|
colours=dark green
|
||||||
|
=====
|
||||||
|
# IP6
|
||||||
|
regexp=inet6\s([^\/]+)\/(\d+)
|
||||||
|
colours=default,yellow,magenta
|
||||||
|
=====
|
||||||
|
# MAC
|
||||||
|
regexp=link\/ether\s(\S+)\s
|
||||||
|
colours=default,magenta
|
||||||
|
=====
|
||||||
|
# State UP
|
||||||
|
regexp=(\d+):\s(\S+):.+state (UP)
|
||||||
|
colours=default,bright_white,bold green,bold green
|
||||||
|
=====
|
||||||
|
# State DOWN
|
||||||
|
regexp=(\d+):\s(\S+):.+state (DOWN)
|
||||||
|
colours=default,bright_white,bold red,bold red
|
||||||
|
=====
|
||||||
|
# State UNKNOWN
|
||||||
|
regexp=(\d+):\s(\S+):.+state (UNKNOWN)
|
||||||
|
colours=default,bright_white,bold cyan,cyan
|
||||||
|
=====
|
||||||
|
# State DORMANT
|
||||||
|
regexp=(\d+):\s(\S+):.+state (DORMANT)
|
||||||
|
colours=default,bright_white,bold cyan,cyan
|
||||||
|
=====
|
||||||
|
# < >
|
||||||
|
regexp=\s<([^>]+)>
|
||||||
|
colours=default,cyan
|
||||||
|
=====
|
||||||
|
# NO-CARRIER
|
||||||
|
regexp=NO-CARRIER
|
||||||
|
colours=bold red
|
||||||
|
=====
|
||||||
|
# Master dev
|
||||||
|
regexp=\smaster\s(\S+)\s
|
||||||
|
colours=default,on_blue white
|
||||||
|
=====
|
||||||
|
# on
|
||||||
|
regexp=\son\s
|
||||||
|
colours=green
|
||||||
|
=====
|
||||||
|
# off
|
||||||
|
regexp=\soff\s
|
||||||
|
colours=dark red
|
||||||
|
=====
|
||||||
|
# link/none
|
||||||
|
regexp=link\/(none)
|
||||||
|
colours=unchanged,red
|
19
colourfiles/conf.ipneighbor
Normal file
19
colourfiles/conf.ipneighbor
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# STATUS - STALE
|
||||||
|
regexp=^(\S+)\s.*(STALE)$
|
||||||
|
colours=default,bright_red,bold red
|
||||||
|
-
|
||||||
|
# STATUS - FAILED
|
||||||
|
regexp=^(\S+)\s.*(FAILED)$
|
||||||
|
colours=default,bright_magenta,bold magenta
|
||||||
|
-
|
||||||
|
# Status - REACHABLE
|
||||||
|
regexp=^(\S+)\s.*(REACHABLE)$
|
||||||
|
colours=default,bright_green,green
|
||||||
|
-
|
||||||
|
# Status - DELAY
|
||||||
|
regexp=^(\S+)\s.*(DELAY)$
|
||||||
|
colours=default,bright_yellow,yellow
|
||||||
|
-
|
||||||
|
# DEV
|
||||||
|
regexp=dev\s(\S+)
|
||||||
|
colours=default,cyan
|
31
colourfiles/conf.iproute
Normal file
31
colourfiles/conf.iproute
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# DEV
|
||||||
|
regexp=dev\s(\S+)
|
||||||
|
colours=default,cyan
|
||||||
|
=====
|
||||||
|
# Gateway
|
||||||
|
regexp=(via)\s(\S+)\s
|
||||||
|
colours=default,yellow,bold yellow
|
||||||
|
=====
|
||||||
|
# Network
|
||||||
|
regexp=^(default|[^ \/]+(\/(\d+))?)
|
||||||
|
colours=green,bright_green,default,green
|
||||||
|
=====
|
||||||
|
# Network DEFAULT
|
||||||
|
regexp=^default
|
||||||
|
colours=on_green bold white
|
||||||
|
=====
|
||||||
|
# Local
|
||||||
|
regexp=(src)\s(\S+)\s?
|
||||||
|
colours=default,magenta,bold magenta
|
||||||
|
=====
|
||||||
|
# proto
|
||||||
|
regexp=(proto)\s(\S+)\s
|
||||||
|
colours=default,default,dark yellow
|
||||||
|
=====
|
||||||
|
# metric
|
||||||
|
regexp=(metric)\s(\d+)\b
|
||||||
|
colours=default,default,bold white
|
||||||
|
=====
|
||||||
|
# linkdown
|
||||||
|
regexp=linkdown
|
||||||
|
colours=bold red
|
88
colourfiles/conf.iptables
Normal file
88
colourfiles/conf.iptables
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
# Chains Custom name
|
||||||
|
regexp=^Chain\s(\S+)\s\(.*$
|
||||||
|
colours=white, bold bright_blue
|
||||||
|
-
|
||||||
|
# Chains FILTER table
|
||||||
|
regexp=^Chain\s(INPUT|OUTPUT|FORWARD)\s
|
||||||
|
colours=unchanged, bold yellow
|
||||||
|
-
|
||||||
|
# Chains NAT|MANGLE table
|
||||||
|
regexp=^Chain\s(PREROUTING|POSTROUTING|INPUT|OUTPUT)\s
|
||||||
|
colours=unchanged, bold yellow
|
||||||
|
-
|
||||||
|
# 2row Title
|
||||||
|
regexp=(pkts|target|num).*
|
||||||
|
colours=bold black
|
||||||
|
-
|
||||||
|
# JUMP Destiny ----------------------------------------------------------------
|
||||||
|
regexp=ACCEPT
|
||||||
|
colours=bright_green
|
||||||
|
-
|
||||||
|
regexp=DROP
|
||||||
|
colours=bright_red
|
||||||
|
-
|
||||||
|
regexp=REJECT
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
regexp=QUEUE
|
||||||
|
colours=on_red white
|
||||||
|
-
|
||||||
|
regexp=RETURN
|
||||||
|
colours=on_green white
|
||||||
|
-
|
||||||
|
regexp=MASQUERADE
|
||||||
|
colours=bright_magenta
|
||||||
|
-
|
||||||
|
regexp=(LOG|ULOG)
|
||||||
|
colours=bright_cyan
|
||||||
|
-
|
||||||
|
regexp=DNAT
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
regexp=SNAT
|
||||||
|
colours=dark magenta
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
-
|
||||||
|
# tcp
|
||||||
|
regexp=\stcp\s
|
||||||
|
colours=bold cyan
|
||||||
|
-
|
||||||
|
# udp
|
||||||
|
regexp=\sudp\s
|
||||||
|
colours=bold magenta
|
||||||
|
-
|
||||||
|
# icmp
|
||||||
|
regexp=\sicmp\s
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
# all
|
||||||
|
regexp=\sall\s
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
# dpt
|
||||||
|
regexp=\sdpts?:([^\s]*)(\s|$)
|
||||||
|
colours=default,bold yellow
|
||||||
|
-
|
||||||
|
# Goto
|
||||||
|
regexp=\s(\[goto\])
|
||||||
|
colours=default,on_blue bold white
|
||||||
|
-
|
||||||
|
# masq ports
|
||||||
|
regexp=\smasq ports:\s(\d+)-?(\d+)?
|
||||||
|
colours=default,bold yellow,bold yellow
|
||||||
|
-
|
||||||
|
# ctstate
|
||||||
|
regexp=ctstate\s(\S+)
|
||||||
|
colours=default,blue
|
||||||
|
-
|
||||||
|
# IP
|
||||||
|
regexp=(!)?((?:\d{1,3}\.){3}(?:\d{1,3}))(?:\/|:)?(\d+)?
|
||||||
|
colours=default,red,bright_white,magenta
|
||||||
|
-
|
||||||
|
# anywhere
|
||||||
|
regexp=\s(anywhere|0.0.0.0/0)\s
|
||||||
|
colours=bright_black
|
||||||
|
-
|
||||||
|
# (Num references)
|
||||||
|
regexp=\((\d+) references\)
|
||||||
|
colours=default,bright_green
|
74
colourfiles/conf.iwconfig
Normal file
74
colourfiles/conf.iwconfig
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
# no wireless extensions
|
||||||
|
regexp=\bno wireless extensions
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# Frequency
|
||||||
|
regexp=[0-9\.]{1,10} GHz
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# Type
|
||||||
|
regexp=802\.11([a-z]+)
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# Speed
|
||||||
|
regexp=[0-9\.]+ Mb/s
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# Tx-Power
|
||||||
|
regexp=\-?[0-9]+ dBm
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# ipv4
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# ipv6
|
||||||
|
regexp=\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# hwaddr
|
||||||
|
regexp=(\d|[a-f]){2}(\:(\d|[a-f]){2}){5}
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# size
|
||||||
|
regexp=\d+(\.\d+)?\s(T|G|M|K|)i?B
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# interface
|
||||||
|
regexp=^([a-z0-9]{2,}\d*):?\s
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
#ip disc
|
||||||
|
regexp=(inet6?|netmask|broadcast)
|
||||||
|
colours=cyan
|
||||||
|
=======
|
||||||
|
#flags
|
||||||
|
regexp=(?<=[,<])[^,]+?(?=[,>])
|
||||||
|
colours=blue
|
||||||
|
=======
|
||||||
|
# mtu
|
||||||
|
regexp=(?i)mtu(\s|\:)\d+
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# quality/level/sensitivity
|
||||||
|
regexp=(\d+/\d+)
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
#errors
|
||||||
|
regexp=errors(\s|\:)\d+
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
regexp=dropped(\s|\:)\d+
|
||||||
|
colours=white
|
||||||
|
=======
|
||||||
|
regexp=overruns(\s|\:)\d+
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
regexp=frame(\s|\:)\d+
|
||||||
|
colours=white
|
||||||
|
=======
|
||||||
|
regexp=carrier(\s|\:)\d+
|
||||||
|
colours=cyan
|
||||||
|
=======
|
||||||
|
regexp=collisions(\s|\:)\d+
|
||||||
|
colours=red
|
9
colourfiles/conf.jobs
Normal file
9
colourfiles/conf.jobs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# BASH
|
||||||
|
regexp=\[(\d+)\](.) +(\d+)?\s?
|
||||||
|
colour=unchanged, cyan, yellow, magenta
|
||||||
|
-
|
||||||
|
regexp=Running.*
|
||||||
|
colour=bold green
|
||||||
|
-
|
||||||
|
regexp=Stopped.*
|
||||||
|
colour=red
|
75
colourfiles/conf.kubectl
Normal file
75
colourfiles/conf.kubectl
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# Green Words
|
||||||
|
regexp=\b(Ready|Running|[Tt]rue|Active|Available|Approved|created)\b
|
||||||
|
colour=unchanged,green
|
||||||
|
-
|
||||||
|
# Master
|
||||||
|
regexp=\smaster\s
|
||||||
|
colour=on_green bold white
|
||||||
|
-
|
||||||
|
# Red Words
|
||||||
|
regexp=\b([Dd]isabled?|[Ee]rrors?|[Ss]topped|[Ff]alse|none|ErrImagePull|[a-zA-Z]+BackOff|OOMKilled|[Tt]erminated|[Ff]aile?d?)\b
|
||||||
|
colour=unchanged,red
|
||||||
|
-
|
||||||
|
# Yellow Words
|
||||||
|
regexp=\b([Ww]arning|[Pp]ending|[Ww]aiting|ContainerCreating|Released|Bound|already exists)\b
|
||||||
|
colour=unchanged,yellow
|
||||||
|
-
|
||||||
|
# Completed Jobs
|
||||||
|
regexp=\b(Completed)\b
|
||||||
|
colour=unchanged,dark green
|
||||||
|
-
|
||||||
|
# Misc IP
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(/\d{1,2})?
|
||||||
|
colour=cyan,magenta
|
||||||
|
-
|
||||||
|
# Ports
|
||||||
|
regexp=(\d+)(:\d+)?/(TCP|UDP)
|
||||||
|
colour=unchanged,yellow,bold green,magenta
|
||||||
|
-
|
||||||
|
# Type/Name
|
||||||
|
regexp=^([^/ ]+)/(\S+)
|
||||||
|
colour=unchanged,yellow,bright_white
|
||||||
|
-
|
||||||
|
# No running Instances
|
||||||
|
regexp=\s(0/[1-9]+)\b
|
||||||
|
colour=unchanged,bold red
|
||||||
|
-
|
||||||
|
# Labels
|
||||||
|
regexp=([\w\d\-_\/.]+)=([\w\d\-_./]+)(,| |$)
|
||||||
|
colour=unchanged,blue,bright_yellow
|
||||||
|
-
|
||||||
|
# YAML First level (PSEUDO)
|
||||||
|
regexp=^([\w\d \-]+):
|
||||||
|
colours=unchanged,bright_blue
|
||||||
|
-
|
||||||
|
# YAML Nested
|
||||||
|
regexp=^[ \-]+(\S+):
|
||||||
|
colours=unchanged, blue
|
||||||
|
-
|
||||||
|
# YAML number
|
||||||
|
regexp=: (\d+)$
|
||||||
|
colours=unchanged, yellow
|
||||||
|
-
|
||||||
|
# Explicit String
|
||||||
|
regexp="(\S*)(?=")
|
||||||
|
colours=default,cyan
|
||||||
|
-
|
||||||
|
# Empy
|
||||||
|
regexp=(\<?[Nn]one\>?|null)
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
# Events title
|
||||||
|
regexp=\s+(Type)\s+(Reason)\s+(Age)\s+(From)\s+(Message)
|
||||||
|
colours=cyan, cyan, cyan, cyan, cyan, magenta
|
||||||
|
-
|
||||||
|
# Title separator
|
||||||
|
regexp=\s+\-{3,}
|
||||||
|
colours=dark white
|
||||||
|
-
|
||||||
|
# HELP Highlight
|
||||||
|
regexp=( --[^= ]+| -[a-zA-Z]( |,))
|
||||||
|
colour=bright_green
|
||||||
|
-
|
||||||
|
# Higlight (Tested in kubectl config get-contexts)
|
||||||
|
regexp=^\*.+$
|
||||||
|
colour=bold white
|
47
colourfiles/conf.last
Normal file
47
colourfiles/conf.last
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# DateTime
|
||||||
|
regexp=\s(\w{3})\s(\w{3})\s+(\d{1,2})\s(\d+:\d+)\s
|
||||||
|
colours=default,default,default,default,cyan
|
||||||
|
=====
|
||||||
|
# DateTime end
|
||||||
|
regexp=\s-\s(\d+:\d+)
|
||||||
|
colours=default,magenta
|
||||||
|
=====
|
||||||
|
# DateTime - down
|
||||||
|
regexp=\s-\s(down)
|
||||||
|
colours=default, red
|
||||||
|
=====
|
||||||
|
# DateTime - crash
|
||||||
|
regexp=\s-\s(crash)
|
||||||
|
colours=default, on_red white
|
||||||
|
=====
|
||||||
|
# still logged in
|
||||||
|
regexp=still logged in
|
||||||
|
colours=on_cyan bold white
|
||||||
|
=====
|
||||||
|
# still running
|
||||||
|
regexp=still running
|
||||||
|
colours=bright_green
|
||||||
|
=====
|
||||||
|
# Time
|
||||||
|
regexp=\((\d+\+)?(\d+):(\d+)\)
|
||||||
|
colours=default,bright_red,yellow,green
|
||||||
|
=====
|
||||||
|
# pts
|
||||||
|
regexp=\s(pts[\S]+)
|
||||||
|
colours=default,green
|
||||||
|
=====
|
||||||
|
# tty
|
||||||
|
regexp=\s(tty\d)
|
||||||
|
colours=default,blue
|
||||||
|
=====
|
||||||
|
# reboot
|
||||||
|
regexp=^reboot\s+system boot
|
||||||
|
colours=red
|
||||||
|
=====
|
||||||
|
# Third column IP
|
||||||
|
regexp=(?:\s|\()(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?:\s|\))
|
||||||
|
colours=default,bold red
|
||||||
|
=====
|
||||||
|
# Third column local
|
||||||
|
regexp=(?:\s|\()(\:0)(?:\s|\))
|
||||||
|
colours=default,dark cyan
|
95
colourfiles/conf.log
Normal file
95
colourfiles/conf.log
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
# this configuration file is suitable for displaying kernel log files
|
||||||
|
|
||||||
|
|
||||||
|
# example of text substitution
|
||||||
|
#regexp=\bda?emon
|
||||||
|
#replace=angel
|
||||||
|
#colours=red
|
||||||
|
#======
|
||||||
|
# example of text substitution
|
||||||
|
#regexp=(\d\d):(\d\d):(\d\d)
|
||||||
|
#replace=\1h\2m\3s
|
||||||
|
#======
|
||||||
|
|
||||||
|
# display this line in yellow and stop further processing
|
||||||
|
regexp=.*last message repeated \d+ times$
|
||||||
|
colours=yellow
|
||||||
|
count=stop
|
||||||
|
======
|
||||||
|
# this is date and hostname
|
||||||
|
# 'Jun 3 22:44:55 neutronium '
|
||||||
|
# 'Jun 3 22:44:55 neutronium-02.my-domain.io '
|
||||||
|
regexp=^... (\d| )\d \d\d:\d\d:\d\d(\s[-.\w\d]+?\s)
|
||||||
|
colours=green, green, red
|
||||||
|
count=once
|
||||||
|
======
|
||||||
|
# everything in parentheses
|
||||||
|
regexp=\(.*?\)
|
||||||
|
colours=blue
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
# everything in `'
|
||||||
|
regexp=\`.+?\'
|
||||||
|
colours=bold yellow
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
# everything in "
|
||||||
|
regexp=\".*?\"
|
||||||
|
colours=blue
|
||||||
|
======
|
||||||
|
# this is probably a pathname
|
||||||
|
regexp=\s/[a-zA-Z_/\.\-\?\d\=\&]+
|
||||||
|
colours=blue
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
# everything in <>
|
||||||
|
regexp=\<.*?\>
|
||||||
|
colours=blue
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
# name of process and pid
|
||||||
|
regexp=([\w/\.\-]+)(\[\d+?\])
|
||||||
|
colours=bold blue, bold red
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
# IPv4 or IPv4:Port
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?
|
||||||
|
colours=bold yellow
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
# IPv6
|
||||||
|
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# Email address
|
||||||
|
regexp=[a-zA-z0-9\.\-\+]+\@[\w\-\.]+
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# HTTP verbs
|
||||||
|
regexp=GET|POST|PUT|DELETE|PATCH|HEAD
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# 2xx status
|
||||||
|
regexp=\s\b2\d{2}\b\s
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# 3xx status
|
||||||
|
regexp=\s\b3\d{2}\b\s
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# 4xx status
|
||||||
|
regexp=\s\b4\d{2}\b\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# 5xx status
|
||||||
|
regexp=\s\b5\d{2}\b\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# status deferred
|
||||||
|
regexp=status\=deferred|Connection refused
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# connect requires special attention
|
||||||
|
regexp=connect
|
||||||
|
colours=on_red
|
||||||
|
count=more
|
7
colourfiles/conf.lolcat
Normal file
7
colourfiles/conf.lolcat
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#Message
|
||||||
|
regexp=([^\w\d]+)
|
||||||
|
colours=unchanged
|
||||||
|
======
|
||||||
|
regexp=([a-zA-Z0-9]+)
|
||||||
|
colours=default,green,yellow,red
|
||||||
|
|
72
colourfiles/conf.ls
Normal file
72
colourfiles/conf.ls
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# The following matches file sizes as produced by ls -l or ls -lh
|
||||||
|
# The output produced by ls -s is probably not specific
|
||||||
|
# enough to be reliably matched, especially considering ls -s(k|m|g|G).
|
||||||
|
#
|
||||||
|
# Example lines:
|
||||||
|
# -rw-r--r-- 1 user staff 344M Mar 22 22:51 MVI_8735.m4v
|
||||||
|
# -rw-r--r-- 1 user staff 360050327 Mar 22 22:51 MVI_8735.m4v
|
||||||
|
# -rw-r--r--. 1 user staff 1.0G Nov 23 16:13 testg
|
||||||
|
# -rw-r--r--. 1 user staff 1.0K Nov 23 16:13 testk
|
||||||
|
# -rw-r--r--. 1 user staff 1.0M Nov 23 16:13 testm
|
||||||
|
# -rw-r--r--. 1 user staff 1073741824 Nov 23 16:13 testg
|
||||||
|
# -rw-r--r--. 1 user staff 1024 Nov 23 16:13 testk
|
||||||
|
# -rw-r--r--. 1 user staff 1048576 Nov 23 16:13 testm
|
||||||
|
#
|
||||||
|
# The regexp uses lookahead to match a date following the size
|
||||||
|
|
||||||
|
# size: 1M <= size < 10M
|
||||||
|
regexp=\s+(\d{7}|\d(?:[,.]?\d+)?[KM])(?=\s[A-Z][a-z]{2}\s)
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# size: 10M <= size < 100M
|
||||||
|
regexp=\s+(\d{8}|\d\d(?:[,.]?\d+)?M)(?=\s[A-Z][a-z]{2}\s)
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# size: 100M <= size < 1G
|
||||||
|
regexp=\s+(\d{9}|\d{3}M)(?=\s[A-Z][a-z]{2}\s)
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# size: 1G <= size
|
||||||
|
regexp=\s+(\d{10,}|[\d.,]+G)(?=\s[A-Z][a-z]{2}\s)
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# device major minor numbers
|
||||||
|
regexp=\s(\d+),\s+(\d+)\s
|
||||||
|
colours=default,bright_yellow ,yellow
|
||||||
|
=======
|
||||||
|
# Date-Time => G1=Month G2=Day G3=Hour G4=Minutes G5=Year
|
||||||
|
regexp=([A-Z][a-z]{2})\s([ 1-3]\d)\s(?:([0-2]?\d):([0-5]\d)(?=[\s,]|$)|\s*(\d{4}))
|
||||||
|
colours=unchanged,cyan,cyan,cyan,cyan,bold magenta
|
||||||
|
=======
|
||||||
|
# root
|
||||||
|
regexp=\s(root|wheel)(?=\s|$)
|
||||||
|
colours=unchanged,bold white on_red
|
||||||
|
=======
|
||||||
|
# SELinux
|
||||||
|
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
|
||||||
|
colours=default,green,yellow,cyan,magenta
|
||||||
|
-
|
||||||
|
# -rwxrwxrwx ============================
|
||||||
|
# File Type
|
||||||
|
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
|
||||||
|
colours=unchanged,unchanged,bold white
|
||||||
|
-
|
||||||
|
# owner rwx
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
|
||||||
|
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
|
||||||
|
-
|
||||||
|
# group rwx
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
|
||||||
|
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
|
||||||
|
-
|
||||||
|
# other rwx
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
|
||||||
|
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
|
||||||
|
-
|
||||||
|
# sStT all
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
|
||||||
|
colours=unchanged,bold green,bold yellow, bold red
|
||||||
|
-
|
||||||
|
# ACL
|
||||||
|
regexp=^\S{10}(\+)
|
||||||
|
colours=unchanged,on_cyan bold white
|
23
colourfiles/conf.lsattr
Normal file
23
colourfiles/conf.lsattr
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Normal
|
||||||
|
regexp=[aAcCdDeijsStTu]
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
# User Namespace
|
||||||
|
regexp=[iadA]
|
||||||
|
colours=bright_green
|
||||||
|
-
|
||||||
|
# Read Only
|
||||||
|
regexp=[EhINXZ]
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
# Separators
|
||||||
|
regexp=[\-]
|
||||||
|
colours=dark
|
||||||
|
-
|
||||||
|
# Error
|
||||||
|
regexp=(lsattr:) \w.*
|
||||||
|
colours=default, bold red
|
||||||
|
-
|
||||||
|
# Filename
|
||||||
|
regexp=(\/[-\w\d. ]+)+$
|
||||||
|
colours=yellow,bold
|
59
colourfiles/conf.lsblk
Normal file
59
colourfiles/conf.lsblk
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# Main HD
|
||||||
|
regexp=^[a-z]+\d?\s
|
||||||
|
colours=bold white
|
||||||
|
======
|
||||||
|
# Partition
|
||||||
|
regexp=([├└─│]+|[\|\`\-]+)(\S+)
|
||||||
|
colours=bright_green
|
||||||
|
======
|
||||||
|
# Partition - LVM
|
||||||
|
regexp=\s+([├└─│]+|[\|\`\-]+)(\S+)
|
||||||
|
colours=default,default,bright_cyan
|
||||||
|
======
|
||||||
|
# Type crypt
|
||||||
|
regexp=(?<=\s)crypt\b
|
||||||
|
colours=on_magenta white
|
||||||
|
======
|
||||||
|
# Type disk
|
||||||
|
regexp=(?<=\s)disk\b
|
||||||
|
colours=magenta
|
||||||
|
======
|
||||||
|
# Type lvm
|
||||||
|
regexp=(?<=\s)lvm\b
|
||||||
|
colours=bold cyan
|
||||||
|
======
|
||||||
|
# Type part
|
||||||
|
regexp=(?<=\s)part\b
|
||||||
|
colours=cyan
|
||||||
|
======
|
||||||
|
# Type loop
|
||||||
|
regexp=(?<=\s)loop\b
|
||||||
|
colours=bright_red
|
||||||
|
======
|
||||||
|
# Size 'K'
|
||||||
|
regexp=\s\d*[.,]?\dKi?\s
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Size 'M'
|
||||||
|
regexp=\s\d*[.,]?\dMi?\s
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Size 'G'
|
||||||
|
regexp=\s\d*[.,]?\dGi?\s
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Size 'T'
|
||||||
|
regexp=\s\d*[.,]?\dTi?\s
|
||||||
|
colours=bold red
|
||||||
|
======
|
||||||
|
# Mount Path
|
||||||
|
regexp=(?<=\s)(\/[^\/ ]*)+$
|
||||||
|
colours=yellow,bold yellow
|
||||||
|
======
|
||||||
|
# Mount [SWAP]
|
||||||
|
regexp=\s\[(SWAP)\]
|
||||||
|
colours=default,bright_magenta
|
||||||
|
======
|
||||||
|
# UUID
|
||||||
|
regexp=(?<=\s)\b([0-9a-fA-F-]{4,}|[\w-]{38})\b
|
||||||
|
colours=default,dark cyan
|
3
colourfiles/conf.lsmod
Normal file
3
colourfiles/conf.lsmod
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Main
|
||||||
|
regexp=(\S+)\s+(\d+)\s+(\d+)
|
||||||
|
colours=default,bright_green,cyan,yellow
|
15
colourfiles/conf.lsof
Normal file
15
colourfiles/conf.lsof
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# device major minor numbers
|
||||||
|
regexp=\s(\d+),(\d+)\s
|
||||||
|
colours=unchanged,bright_yellow ,yellow
|
||||||
|
-
|
||||||
|
# root
|
||||||
|
regexp=\broot\b
|
||||||
|
colours=bold white on_red
|
||||||
|
-
|
||||||
|
# PID
|
||||||
|
regexp=^(\S+)\s+(\d+)\s
|
||||||
|
colours=unchanged,bold cyan,cyan
|
||||||
|
-
|
||||||
|
# PATH
|
||||||
|
regexp=\s\/.*\/(\S+)($| \(.*\))
|
||||||
|
colours=green,bright_green,red
|
36
colourfiles/conf.lspci
Normal file
36
colourfiles/conf.lspci
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Address
|
||||||
|
regexp=^(..):(..).(.)
|
||||||
|
colours=default,bright_green,bright_yellow,red
|
||||||
|
-
|
||||||
|
# Ethernet
|
||||||
|
regexp=(Ethernet|Network) controller:
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
# Wireless
|
||||||
|
regexp=Wireless
|
||||||
|
colours=bright_cyan
|
||||||
|
-
|
||||||
|
# SATA
|
||||||
|
regexp=SATA controller:
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
# Audio
|
||||||
|
regexp=Audio device:
|
||||||
|
colours=blue
|
||||||
|
-
|
||||||
|
# Video
|
||||||
|
regexp=VGA compatible controller:
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
# Bridges
|
||||||
|
regexp=(PCI|ISA|Host) bridge:
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
# any unspecified controller
|
||||||
|
regexp=([A-Z].+?) controller:
|
||||||
|
colours=blue
|
||||||
|
-
|
||||||
|
# For lspci -k
|
||||||
|
regexp=Kernel (?:modules|driver in use): (.+)
|
||||||
|
colours=default,bright_red
|
||||||
|
-
|
25
colourfiles/conf.mount
Normal file
25
colourfiles/conf.mount
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Intended for colouring 'mount' output
|
||||||
|
# written by Emanuele Aina
|
||||||
|
|
||||||
|
regexp=^(.*) on (.*) type (.*) \((.*)\)
|
||||||
|
colours=default,green,yellow,blue,magenta
|
||||||
|
-
|
||||||
|
# Devices
|
||||||
|
regexp=^(\/[^\/ ]+)+
|
||||||
|
colours=bold green, on_green black
|
||||||
|
-
|
||||||
|
# Mount Path
|
||||||
|
regexp=(?<=on )(\/[^\/ ]+)+
|
||||||
|
colours=unchanged,underline yellow
|
||||||
|
-
|
||||||
|
# RW
|
||||||
|
regexp=(?<=\()rw
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
# RO
|
||||||
|
regexp=(?<=\()ro
|
||||||
|
colours=bold green
|
||||||
|
-
|
||||||
|
# Like comment, leave at end always
|
||||||
|
regexp=^(cgroup|tmpfs).*
|
||||||
|
colours=bright_black
|
15
colourfiles/conf.mtr
Normal file
15
colourfiles/conf.mtr
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#ip address
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# 0 Full Line | 1 Loss | 2 Snt | 3 Last | 4 Avg | 5 Best | 6 Worst | 7 stDev
|
||||||
|
regexp=(\d+\.\d%)\s+(\d+)\s+(\d+\.\d)\s+(\d+\.\d)\s+(\d+\.\d)\s+(\d+\.\d)\s+(\d+\.\d)$
|
||||||
|
colours=unchanged,yellow,unchanged,unchanged,blue,green,red,unchanged
|
||||||
|
=======
|
||||||
|
# unknow host
|
||||||
|
regexp=\?\?\?
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# Packets/Pings
|
||||||
|
regexp=(Packets|Pings)
|
||||||
|
colours=bold green
|
92
colourfiles/conf.mvn
Normal file
92
colourfiles/conf.mvn
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
# mvn grc colorizer configuration
|
||||||
|
# [INFO]
|
||||||
|
regexp=^\[INFO\]
|
||||||
|
colours=bold
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# [WARNING]
|
||||||
|
regexp=^\[WARNING\]
|
||||||
|
colours=bold yellow
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# [ERROR]
|
||||||
|
regexp=^\[ERROR\]
|
||||||
|
colours=bold red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# BUILD FAILURE
|
||||||
|
regexp=BUILD FAILURE
|
||||||
|
colours=bold red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# [debug]
|
||||||
|
regexp=^\[debug\]
|
||||||
|
colours=magenta
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# lines [INFO] ----
|
||||||
|
regexp=\s[-]{6,}
|
||||||
|
colours=red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# lines ^----
|
||||||
|
regexp=^[-]{6,}
|
||||||
|
colours=yellow
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# lines T E S T S
|
||||||
|
regexp=^ T E S T S
|
||||||
|
colours=yellow
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# lines ^Tests run:
|
||||||
|
regexp=^Tests run: ([\d]+)
|
||||||
|
colours=yellow,green
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# lines ^Tests run: Failures/Errors/Skipped
|
||||||
|
regexp=(Failures|Errors|Skipped):\s([\d]+)
|
||||||
|
colours=none,yellow,bold red
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# lines ^Tests run: Failures/Errors/Skipped
|
||||||
|
regexp=(Failures|Errors|Skipped):\s(0)\D?
|
||||||
|
colours=none,yellow,green
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# summary
|
||||||
|
regexp=\s(Total time: )(.*)$
|
||||||
|
colours=none,none,bold yellow
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# summary
|
||||||
|
regexp=\s(Finished at: )(.*)$
|
||||||
|
colours=none,none,bold yellow
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# BUILD SUCCESSFUL
|
||||||
|
regexp=\s(BUILD SUCCESSFUL)
|
||||||
|
colours=none,green bold
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# Building projectName
|
||||||
|
regexp=^(\[INFO\])( Building )(.*)$
|
||||||
|
colours=none,bold,none,white bold
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# reactor summary
|
||||||
|
regexp=([.]{3,} )(SUCCESS)( \[)([^\]]*)(])
|
||||||
|
colours=none,none,green,none,yellow,none
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# reactor summary
|
||||||
|
regexp=([.]{3,} )(FAILURE)( \[)([^\]]*)(])
|
||||||
|
colours=none,none,red,none,red,none
|
||||||
|
count=more
|
||||||
|
==============
|
||||||
|
# reactor summary
|
||||||
|
regexp=([.]{3,} )(SKIPPED)
|
||||||
|
colours=none,none,yellow bold,none
|
||||||
|
count=more
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@ regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
|
|||||||
colours=green
|
colours=green
|
||||||
=======
|
=======
|
||||||
# protocols
|
# protocols
|
||||||
regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
|
regexp=(^tcp6?|^udp6?|^unix|^IPX|STREAM|DGRAM)
|
||||||
colours=bold blue
|
colours=bold blue
|
||||||
=======
|
=======
|
||||||
# status
|
# status
|
35
colourfiles/conf.nmap
Normal file
35
colourfiles/conf.nmap
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Scan Title
|
||||||
|
regexp=Nmap scan report for (\S+)\s\(([^\)]+)\)
|
||||||
|
colours=default,bold green, bold magenta
|
||||||
|
-
|
||||||
|
# up
|
||||||
|
regexp=Host is (up)
|
||||||
|
colours=default, bold green
|
||||||
|
-
|
||||||
|
# Failed to resolve
|
||||||
|
regexp=Failed\sto\sresolve\s\"(\S+)\"
|
||||||
|
colours=red,bold red
|
||||||
|
-
|
||||||
|
# Closed ports
|
||||||
|
regexp=Not shown: (\d+)\s(closed|filtered)\sports
|
||||||
|
colours=default,bright_red,red
|
||||||
|
-
|
||||||
|
# Titles
|
||||||
|
regexp=^PORT.*$|^HOP.*
|
||||||
|
colours=bold
|
||||||
|
-
|
||||||
|
# Ports
|
||||||
|
regexp=^(\d+)\/(\w+)\s+(\w+)\s+(\S+)
|
||||||
|
colours=default,bold green,magenta,cyan,bold yellow
|
||||||
|
-
|
||||||
|
# Ports Details
|
||||||
|
regexp=^\|_?(.*)
|
||||||
|
colours=bold green,default
|
||||||
|
-
|
||||||
|
# Trace
|
||||||
|
regexp=^\d+\s+(\d+\.\d+\sms)[^0-9]*(\d+\.\d+\.\d+\.\d+)
|
||||||
|
colours=default,green,magenta
|
||||||
|
-
|
||||||
|
# Network Distance:
|
||||||
|
regexp=Network Distance:\s(\d+)
|
||||||
|
colours=default,bold green
|
8
colourfiles/conf.ntpdate
Normal file
8
colourfiles/conf.ntpdate
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# time offset
|
||||||
|
regexp=offset\s([0-9\.,\-]+\ssec)
|
||||||
|
colours=unchanged,bold green
|
||||||
|
======
|
||||||
|
# server ip
|
||||||
|
regexp=server\s([0-9a-fA-F\.:]+)
|
||||||
|
colours=unchanged,yellow
|
||||||
|
|
60
colourfiles/conf.ping
Normal file
60
colourfiles/conf.ping
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
# IP
|
||||||
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
||||||
|
colours=bright_blue
|
||||||
|
=======
|
||||||
|
# ipv6 number
|
||||||
|
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
|
||||||
|
colours=magenta
|
||||||
|
=======
|
||||||
|
# icmp_seq=##
|
||||||
|
regexp=icmp_seq=(\d+)
|
||||||
|
colours=default,yellow
|
||||||
|
=======
|
||||||
|
# ttl=#
|
||||||
|
regexp=ttl=(\d+)
|
||||||
|
colours=default,magenta
|
||||||
|
=======
|
||||||
|
# name
|
||||||
|
regexp=(?:[fF]rom|PING)\s(\S+)\s
|
||||||
|
colours=default,blue
|
||||||
|
=======
|
||||||
|
# time
|
||||||
|
regexp=([0-9\.]+)\s?ms
|
||||||
|
colours=green,bold green
|
||||||
|
=======
|
||||||
|
# DUP
|
||||||
|
regexp=DUP\!
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# OK
|
||||||
|
regexp= 0(\.0)?% packet loss
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# Errors
|
||||||
|
regexp=(Destination Host Unreachable|100(\.0)?% packet loss)
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# unknown host
|
||||||
|
regexp=.+unknown\shost\s(.+)
|
||||||
|
colours=red,bold red
|
||||||
|
-
|
||||||
|
# statistics header
|
||||||
|
regexp=--- (\S+) ping statistics ---
|
||||||
|
colours=bold, bold blue
|
||||||
|
-
|
||||||
|
# last line min/avg/max/mdev
|
||||||
|
regexp=rtt (min)/(avg)/(max)/(mdev)
|
||||||
|
colours=default,bright_yellow,bright_blue,bright_red,bright_magenta
|
||||||
|
-
|
||||||
|
# last line values
|
||||||
|
regexp=\=\s([0-9\.]+)\/([0-9\.]+)\/([0-9\.]+)\/([0-9\.]+)
|
||||||
|
colours=default,bright_yellow,bright_blue,bright_red,bright_magenta
|
||||||
|
-
|
||||||
|
# these are good for nping
|
||||||
|
regexp=SENT|RCVD
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
# nping
|
||||||
|
regexp=unreachable
|
||||||
|
colours=red
|
||||||
|
|
@ -29,3 +29,10 @@ colours=yellow
|
|||||||
# unknown host
|
# unknown host
|
||||||
regexp=.+unknown\shost\s(.+)
|
regexp=.+unknown\shost\s(.+)
|
||||||
colours=red,bold red
|
colours=red,bold red
|
||||||
|
=======
|
||||||
|
regexp=.*icmp_seq=(\d+) timeout
|
||||||
|
replace=TIMEOUT \1
|
||||||
|
colours=red
|
||||||
|
|
||||||
|
|
||||||
|
|
72
colourfiles/conf.ps
Normal file
72
colourfiles/conf.ps
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# /full/path
|
||||||
|
regexp=(\s|^)/[-\w\d.]+/[-\w\d./]+
|
||||||
|
colours=bold white
|
||||||
|
=======
|
||||||
|
# CAPS LINE
|
||||||
|
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
|
||||||
|
colours=underline
|
||||||
|
=======
|
||||||
|
# Capd Line
|
||||||
|
regexp=^([A-Z][-a-z0-9]+(\s+|$)){3,}$
|
||||||
|
colours=underline
|
||||||
|
=======
|
||||||
|
# VMSTAT
|
||||||
|
regexp=(\s|^)\d+([.,]\d+)?(?=[\s,]|$)
|
||||||
|
colours=bright_green
|
||||||
|
=======
|
||||||
|
# PID
|
||||||
|
regexp=^[a-zA-Z]+\w+\s+(\d+)|^\d\s+\w\s+(?:\w+\s+)?(\d+)|^\s*(\d+)
|
||||||
|
colours=unchanged,bold magenta,bold magenta,bold magenta
|
||||||
|
=======
|
||||||
|
# n.n.n
|
||||||
|
regexp=(\s|^)\d+\.\d+\.\d+(?=[\s,]|$)
|
||||||
|
colours=bold cyan
|
||||||
|
=======
|
||||||
|
# text:
|
||||||
|
regexp=^([-a-z0-9]+):\s
|
||||||
|
colours=unchanged,yellow
|
||||||
|
=======
|
||||||
|
# -options
|
||||||
|
regexp=(?<=\s)-[\w\d]+(?=\s|$)
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# --long-option=
|
||||||
|
# legacy: regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=?)
|
||||||
|
regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=|\s)?(?!--)([^\s]*)
|
||||||
|
colours=cyan,white,underline cyan
|
||||||
|
=======
|
||||||
|
# [text]
|
||||||
|
regexp=\[[-\w\d:/]+\]
|
||||||
|
colours=cyan
|
||||||
|
=======
|
||||||
|
# root
|
||||||
|
regexp=root|wheel(?=\s|$)
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# pts
|
||||||
|
regexp=(\s|^)pts/\d+(?=[^\w\d]|$)
|
||||||
|
colours=bright_yellow
|
||||||
|
=======
|
||||||
|
# tty
|
||||||
|
regexp=(\s|^)tty\d+(?=[^\w\d]|$)
|
||||||
|
colours=bright_cyan
|
||||||
|
=======
|
||||||
|
# Negative NICE (works only in -l)
|
||||||
|
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(-\d+)
|
||||||
|
colours=unchanged,on_red bold white
|
||||||
|
=======
|
||||||
|
# Neutral NICE (works only in -l)
|
||||||
|
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(\d+)
|
||||||
|
colours=unchanged,cyan
|
||||||
|
=======
|
||||||
|
# Positive NICE (works only in -l)
|
||||||
|
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(1\d)
|
||||||
|
colours=unchanged,on_cyan bold white
|
||||||
|
=======
|
||||||
|
# Process ZOMBIE
|
||||||
|
regexp=^\d\s+([zZ])\s
|
||||||
|
colours=unchanged,on_red bold white
|
||||||
|
=======
|
||||||
|
# Process RS
|
||||||
|
regexp=^\d\s+([sSrR])\s
|
||||||
|
colours=unchanged,on_magenta black
|
8
colourfiles/conf.pv
Normal file
8
colourfiles/conf.pv
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# size
|
||||||
|
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
#
|
||||||
|
regexp=<=>
|
||||||
|
colours=yellow
|
||||||
|
|
19
colourfiles/conf.semanageboolean
Normal file
19
colourfiles/conf.semanageboolean
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Name
|
||||||
|
regexp=^\S+
|
||||||
|
colours=white
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=\s\((off)
|
||||||
|
colours=default,bright_red
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=\s\((on)
|
||||||
|
colours=default,bright_green
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=\,\s+(off)\)
|
||||||
|
colours=default,dark red
|
||||||
|
-
|
||||||
|
# State
|
||||||
|
regexp=\,\s+(on)\)
|
||||||
|
colours=default,dark green
|
11
colourfiles/conf.semanagefcontext
Normal file
11
colourfiles/conf.semanagefcontext
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# SELinux
|
||||||
|
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
|
||||||
|
colours=default,green,yellow,cyan,magenta
|
||||||
|
-
|
||||||
|
# Path
|
||||||
|
regexp=\/\S+(\/\S+)\(
|
||||||
|
colours=green,bright_green
|
||||||
|
-
|
||||||
|
# Almost universal regex
|
||||||
|
regexp=\.\*|\[\^\/\]\*|\(\/\.\*\)\?|\?|\\\.
|
||||||
|
colours=blue
|
23
colourfiles/conf.semanageuser
Normal file
23
colourfiles/conf.semanageuser
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# r
|
||||||
|
regexp=\S+_r
|
||||||
|
colours=yellow
|
||||||
|
-
|
||||||
|
# u
|
||||||
|
regexp=\S+_u
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
# t
|
||||||
|
regexp=\S+_t
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
# s
|
||||||
|
regexp=s\d+
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
# tcp for ports
|
||||||
|
regexp=tcp
|
||||||
|
colours=blue
|
||||||
|
-
|
||||||
|
# udp for ports
|
||||||
|
regexp=udp
|
||||||
|
colours=yellow
|
28
colourfiles/conf.sensors
Normal file
28
colourfiles/conf.sensors
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Sensor name
|
||||||
|
regexp=([a-z\-0-9]+)
|
||||||
|
colours=underline yellow
|
||||||
|
======
|
||||||
|
# Data names
|
||||||
|
regexp=(.+:)\s+(.+)
|
||||||
|
colours=unchanged, bright_cyan, default
|
||||||
|
======
|
||||||
|
# Extra info
|
||||||
|
regexp=.+\s+(\(.+\))
|
||||||
|
colours=unchanged, bright_black
|
||||||
|
======
|
||||||
|
# Adapter name
|
||||||
|
regexp=Adapter:(\s.*)
|
||||||
|
colours=unchanged, yellow
|
||||||
|
======
|
||||||
|
# Low temperature (below 60)
|
||||||
|
regexp=.+:\s+(\+[2345][0-9]\.[0-9]°C)
|
||||||
|
colours=unchanged, green
|
||||||
|
======
|
||||||
|
# High temperature (above 60)
|
||||||
|
regexp=.+:\s+(\+[67][0-9]\.[0-9]°C)
|
||||||
|
colours=unchanged, bright_yellow
|
||||||
|
======
|
||||||
|
# Very high temperature (above 80)
|
||||||
|
regexp=.+:\s+(\+[89][0-9]\.[0-9]°C)
|
||||||
|
colours=unchanged, bright_red
|
||||||
|
======
|
23
colourfiles/conf.showmount
Normal file
23
colourfiles/conf.showmount
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Path
|
||||||
|
regexp=^(\/\S+)
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
# Path Last part
|
||||||
|
regexp=\/(\w+)\s
|
||||||
|
colours=unchanged,bright_green
|
||||||
|
-
|
||||||
|
# IP
|
||||||
|
regexp=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\/\d+)?)
|
||||||
|
colours=default,yellow,magenta
|
||||||
|
-
|
||||||
|
# ALL
|
||||||
|
regexp=\*
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
# Options
|
||||||
|
regexp=\(([\w,]+)\)
|
||||||
|
colours=default,cyan
|
||||||
|
-
|
||||||
|
# Server
|
||||||
|
regexp=for\s([^:]+):$
|
||||||
|
colours=default,bold yellow
|
93
colourfiles/conf.sockstat
Normal file
93
colourfiles/conf.sockstat
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
=======
|
||||||
|
# CAPS LINE
|
||||||
|
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
|
||||||
|
colours=underline
|
||||||
|
=======
|
||||||
|
# root
|
||||||
|
regexp=^root(?=\s|$)
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# non-root users
|
||||||
|
regexp=^(?:(?!root|USER))([^\s]+)
|
||||||
|
colours=bold yellow,unchanged
|
||||||
|
=======
|
||||||
|
# CMD
|
||||||
|
regexp=^[a-zA-Z]+\w+\s+(\w+)\s+\d+
|
||||||
|
colours=unchanged,bold cyan
|
||||||
|
=======
|
||||||
|
# FD
|
||||||
|
regexp=^[a-zA-Z]+\w+\s+\w+\s+\d+\s+(\d+)
|
||||||
|
colours=unchanged,yellow
|
||||||
|
=======
|
||||||
|
# PID
|
||||||
|
regexp=^[a-zA-Z]+\w+\s+[a-zA-Z]+\w+\s+(\d+)
|
||||||
|
colours=unchanged,bold magenta
|
||||||
|
=======
|
||||||
|
# PROTOCOLS
|
||||||
|
regexp=(tcp4|udp4|tcp6|udp6|stream|dgram)
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# hostname:service
|
||||||
|
regexp=([\w\.\-]+):([\w\-]+)\b
|
||||||
|
colours=yellow, bold green, bold yellow
|
||||||
|
=======
|
||||||
|
# hostname:port
|
||||||
|
regexp=([\w\.\-]+):(\d+)\b
|
||||||
|
colours=yellow, bold green, bold red
|
||||||
|
=======
|
||||||
|
# *:service
|
||||||
|
regexp=(\*):([\w\-]+)\b
|
||||||
|
colours=yellow, yellow, bold red
|
||||||
|
=======
|
||||||
|
# PATH
|
||||||
|
regexp=\s\/.*\/(\S+)($| \(.*\))
|
||||||
|
colours=green,bright_green,red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=FIN_WAIT.*
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=SYN.*?
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=LISTEN(ING)?
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=TIME_WAIT
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=CLOS(E(_WAIT)?|ING)
|
||||||
|
colours=red
|
||||||
|
skip=yes
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=LAST_ACK
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=ESTAB.*?\b|CONNECTED
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=FREE
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=DISCONNECTING
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=CONNECTING
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=CONNECTING
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=UNKNOWN
|
||||||
|
colours=blink bold red
|
32
colourfiles/conf.sql
Normal file
32
colourfiles/conf.sql
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# this configuration file is for displaying sql scripts very nice to use with sqlformat aka sqlparser
|
||||||
|
regexp=\w
|
||||||
|
colours="\033[38;5;140m"
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=\b(MIN|MAX|CASE|IF|ELSE|SUBDATE|NOW|ABORT|ABS|ABSOLUTE|ACCESS|ADA|ADD|ADMIN|AFTER|AGGREGATE|ALIAS|ALL|ALLOCATE|ANALYSE|ANALYZE|ANY|ARE|ASC|ASENSITIVE|ASSERTION|ASSIGNMENT|ASYMMETRIC|AT|ATOMIC|AUTHORIZATION|AVG|BACKWARD|BEFORE|BEGIN|BETWEEN|BITVAR|BIT_LENGTH|BOTH|BREADTH|CACHE|CALL|CALLED|CARDINALITY|CASCADE|CASCADED|CAST|CATALOG|CATALOG_NAME|CHAIN|CHARACTERISTICS|CHARACTER_LENGTH|CHARACTER_SET_CATALOG|CHARACTER_SET_NAME|CHARACTER_SET_SCHEMA|CHAR_LENGTH|CHECK|CHECKED|CHECKPOINT|CLASS|CLASS_ORIGIN|CLOB|CLOSE|CLUSTER|COALESCE|COBOL|COLLATE|COLLATION|COLLATION_CATALOG|COLLATION_NAME|COLLATION_SCHEMA|COLLECT|COLUMN|COLUMN_NAME|COMMAND_FUNCTION|COMMAND_FUNCTION_CODE|COMMENT|COMMIT|COMMITTED|COMPLETION|CONDITION_NUMBER|CONNECT|CONNECTION|CONNECTION_NAME|CONSTRAINT|CONSTRAINTS|CONSTRAINT_CATALOG|CONSTRAINT_NAME|CONSTRAINT_SCHEMA|CONSTRUCTOR|CONTAINS|CONTINUE|CONVERSION|CONVERT|COPY|CORRESPONTING|COUNT|CREATEDB|CREATEUSER|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_PATH|CURRENT_ROLE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|CURSOR|CURSOR_NAME|CYCLE|DATA|DATABASE|DATETIME_INTERVAL_CODE|DATETIME_INTERVAL_PRECISION|DAY|DEALLOCATE|DECLARE|DEFAULT|DEFAULTS|DEFERRABLE|DEFERRED|DEFINED|DEFINER|DELIMITER|DELIMITERS|DEREF|DESC|DESCRIBE|DESCRIPTOR|DESTROY|DESTRUCTOR|DETERMINISTIC|DIAGNOSTICS|DICTIONARY|DISCONNECT|DISPATCH|DO|DOMAIN|DYNAMIC|DYNAMIC_FUNCTION|DYNAMIC_FUNCTION_CODE|EACH|ENCODING|ENCRYPTED|END-EXEC|EQUALS|ESCAPE|EVERY|EXCEPT|EXCEPTION|EXCLUDING|EXCLUSIVE|EXEC|EXECUTE|EXISTING|EXISTS|EXTERNAL|EXTRACT|FALSE|FETCH|FINAL|FIRST|FORCE|FOREACH|FOREIGN|FORTRAN|FORWARD|FOUND|FREE|FREEZE|FULL|FUNCTION| 'G|GENERAL|GENERATED|GET|GLOBAL|GO|GOTO|GRANT|GRANTED|GROUPING|HANDLER|HAVING|HIERARCHY|HOLD|HOST|IDENTITY|IGNORE|ILIKE|IMMEDIATE|IMMUTABLE|IMPLEMENTATION|IMPLICIT|INCLUDING|INCREMENT|INDEX|INDITCATOR|INFIX|INHERITS|INITIALIZE|INITIALLY|INOUT|INPUT|INSENSITIVE|INSTANTIABLE|INSTEAD|INTERSECT|INTO|INVOKER|IS|ISNULL|ISOLATION|ITERATE|KEY|KEY_MEMBER|KEY_TYPE|LANCOMPILER|LANGUAGE|LARGE|LAST|LATERAL|LEADING|LENGTH|LESS|LEVEL|LIMIT|LISTEN|LOAD|LOCAL|LOCALTIME|LOCALTIMESTAMP|LOCATION|LOCATOR|LOCK|LOWER|MAP|MATCH|MAXVALUE|MESSAGE_LENGTH|MESSAGE_OCTET_LENGTH|MESSAGE_TEXT|METHOD|MINUTE|MINVALUE|MOD|MODE|MODIFIES|MODIFY|MONTH|MORE|MOVE|MUMPS|NAMES|NATIONAL|NATURAL|NCHAR|NCLOB|NEW|NEXT|NO|NOCREATEDB|NOCREATEUSER|NONE|NOT|NOTHING|NOTIFY|NOTNULL|NULL|NULLABLE|IFNULL|NULLIF|OBJECT|OCTET_LENGTH|OF|OFF|OFFSET|OIDS|OLD|ONLY|OPEN|OPERATION|OPERATOR|OPTION|OPTIONS|ORDINALITY|OUT|OUTPUT|OVERLAPS|OVERLAY|OVERRIDING|OWNER|PAD|PARAMETER|PARAMETERS|PARAMETER_MODE|PARAMATER_NAME|PARAMATER_ORDINAL_POSITION|PARAMETER_SPECIFIC_CATALOG|PARAMETER_SPECIFIC_NAME|PARAMATER_SPECIFIC_SCHEMA|PARTIAL|PASCAL|PENDANT|PLACING|PLI|POSITION|POSTFIX|PRECISION|PREFIX|PREORDER|PREPARE|PRESERVE|PRIMARY|PRIOR|PRIVILEGES|PROCEDURAL|PROCEDURE|PUBLIC|RAISE|READ|READS|RECHECK|RECURSIVE|REF|REFERENCES|REFERENCING|REINDEX|RELATIVE|RENAME|REPEATABLE|RESET|RESTART|RESTRICT|RESULT|RETURN|RETURNED_LENGTH|RETURNED_OCTET_LENGTH|RETURNED_SQLSTATE|RETURNS|REVOKE|RIGHT|ROLE|ROLLBACK|ROLLUP|ROUTINE|ROUTINE_CATALOG|ROUTINE_NAME|ROUTINE_SCHEMA|ROW|ROWS|ROW_COUNT|RULE|SAVE_POINT|SCALE|SCHEMA|SCHEMA_NAME|SCOPE|SCROLL|SEARCH|SECOND|SECURITY|SELF|SENSITIVE|SEQUENCE|SERIALIZABLE|SERVER_NAME|SESSION|SESSION_USER|SETOF|SETS|SHARE|SHOW|SIMILAR|SIMPLE|SIZE|SOME|SOURCE|SPACE|SPECIFIC|SPECIFICTYPE|SPECIFIC_NAME|SQL|SQLCODE|SQLERROR|SQLEXCEPTION|SQLSTATE|SQLWARNING|STABLE|START|STATE|STATEMENT|STATIC|STATISTICS|STDIN|STDOUT|STORAGE|STRICT|STRUCTURE|STYPE|SUBCLASS_ORIGIN|SUBLIST|SUBSTRING|SUM|SYMMETRIC|SYSID|SYSTEM|SYSTEM_USER|TABLE|TABLE_NAME|TEMP|TEMPLATE|TEMPORARY|TERMINATE|THAN|TIMESTAMP|TIMEZONE_HOUR|TIMEZONE_MINUTE|TO|TOAST|TRAILING|TRANSATION|TRANSACTIONS_COMMITTED|TRANSACTIONS_ROLLED_BACK|TRANSATION_ACTIVE|TRANSFORM|TRANSFORMS|TRANSLATE|TRANSLATION|TREAT|TRIGGER|TRIGGER_CATALOG|TRIGGER_NAME|TRIGGER_SCHEMA|TRIM|TRUE|TRUNCATE|TRUSTED|TYPE|UNCOMMITTED|UNDER|UNENCRYPTED|UNION|UNIQUE|UNKNOWN|UNLISTEN|UNNAMED|UNNEST|UNTIL|UPPER|USAGE|USE|USER|USER_DEFINED_TYPE_CATALOG|USER_DEFINED_TYPE_NAME|USER_DEFINED_TYPE_SCHEMA|USING|VACUUM|VALID|VALIDATOR|VALUES|VARIABLE|VERBOSE|VERSION|VIEW|VOLATILE|WHENEVER|WITH|WITHOUT|WORK|WRITE|YEAR|ZONE)\b
|
||||||
|
colours="\033[38;5;11m"
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=\b(ARRAY|BIGINT|BINARY|BIT|BLOB|BOOLEAN|CHAR|CHARACTER|DATE|DEC|DECIMAL|FLOAT|INT|INT8|INTEGER|LONG|NUMBER|NUMERIC|REAL|SERIAL|SERIAL8|SIGNED|SMALLINT|TEXT|TINYINT|UNSIGNED|VARCHAR|VARCHAR2|VARYING)\b
|
||||||
|
colours=bright_white
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=\b(HOUR|MINUTE|SECOND|INTERVAL|SELECT|INSERT|DELETE|UPDATE|REPLACE|MERGE|DROP|CREATE|ALTER|WHERE|FROM|INNER|JOIN|STRAIGHT_JOIN|AND|OR|LIKE|ON|IN|SET|BY|GROUP|ORDER|LEFT|OUTER|FULL|END|THEN|LOOP|AS|FOR|WHILE|WHEN|DISTINCT)\b
|
||||||
|
colours="\033[38;5;172m"
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=\,
|
||||||
|
colours="\033[38;5;172m"
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=\b(\d)\b
|
||||||
|
colours="\033[38;5;73m"
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=[=!><]
|
||||||
|
colours="\033[38;5;73m"
|
||||||
|
count=more
|
||||||
|
======
|
||||||
|
regexp=\/\*.*?\*\/
|
||||||
|
colours="\033[38;5;244m"
|
||||||
|
count=more
|
88
colourfiles/conf.ss
Normal file
88
colourfiles/conf.ss
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
# status
|
||||||
|
regexp=\[.*\]
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# Local Address:Port Peer Address:Port
|
||||||
|
regexp=\s((?:\d+\.){3}\d+|\*|\[?[\da-fA-F\.:]+\]?|[\w\d\-\_\.]+)(%[\w\d]+)?:(\S+)\s+\s((?:\d+\.){3}\d+|\*|\[?[\da-fA-F\.:]+\]?|[\w\d\-\_\.]+):(\S+)
|
||||||
|
colours=default,bright_green,blue,bright_red,cyan,magenta
|
||||||
|
=======
|
||||||
|
# process name
|
||||||
|
regexp=\("([^"]+)",
|
||||||
|
colours=blue
|
||||||
|
=======
|
||||||
|
# ipx hostname
|
||||||
|
regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# protocols
|
||||||
|
regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
|
||||||
|
colours=magenta
|
||||||
|
=======
|
||||||
|
# protocols UDP
|
||||||
|
regexp=^udp
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# protocols TCP
|
||||||
|
regexp=^tcp
|
||||||
|
colours=blue
|
||||||
|
=======
|
||||||
|
# status UNCONN
|
||||||
|
regexp=UNCONN
|
||||||
|
colours=dark red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=FIN_WAIT.*
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=SYN.*?
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=LISTEN(ING)?
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=TIME_WAIT
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=CLOS(E(_WAIT)?|ING)
|
||||||
|
colours=red
|
||||||
|
skip=yes
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=LAST_ACK
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=ESTAB.*?\b|CONNECTED
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=FREE
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=DISCONNECTING
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=CONNECTING
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# status
|
||||||
|
regexp=UNKNOWN
|
||||||
|
colours=blink bold red
|
||||||
|
=======
|
||||||
|
# path
|
||||||
|
regexp=(\@)[\dabcdef]+
|
||||||
|
colours=green, bold green
|
||||||
|
=======
|
||||||
|
# timer
|
||||||
|
regexp=\d+sec
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
#Skip header
|
||||||
|
regexp=(Netid|State).*$
|
||||||
|
colours=default
|
40
colourfiles/conf.stat
Normal file
40
colourfiles/conf.stat
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Fields
|
||||||
|
regexp=(?:IO\s)?\S+:\s
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
# Filename
|
||||||
|
regexp=File: ‘(\S+)’
|
||||||
|
colours=unchanged, bold
|
||||||
|
-
|
||||||
|
# File Type
|
||||||
|
regexp=IO\sBlock:\s\d+\s+(.*)$
|
||||||
|
colours=unchanged, bold green
|
||||||
|
-
|
||||||
|
# SELinux from conf.ls
|
||||||
|
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
|
||||||
|
colours=default,green,yellow,cyan,magenta
|
||||||
|
-
|
||||||
|
# Permission Numbers
|
||||||
|
regexp=\((\d)(\d)(\d)(\d)\/
|
||||||
|
colours=default,bold white,bright_green,yellow,bright_red
|
||||||
|
-
|
||||||
|
# -rwxrwxrwx ============================ from conf.ls
|
||||||
|
# File Type
|
||||||
|
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
|
||||||
|
colours=unchanged,unchanged,bold white
|
||||||
|
-
|
||||||
|
# owner rwx
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
|
||||||
|
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
|
||||||
|
-
|
||||||
|
# group rwx
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
|
||||||
|
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
|
||||||
|
-
|
||||||
|
# other rwx
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
|
||||||
|
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
|
||||||
|
-
|
||||||
|
# sStT all
|
||||||
|
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
|
||||||
|
colours=unchanged,bold green,bold yellow, bold red
|
11
colourfiles/conf.sysctl
Normal file
11
colourfiles/conf.sysctl
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Main & Last key
|
||||||
|
regexp=(\w+)\.(\S+) = ?(.+)?$
|
||||||
|
colours=default,green,cyan,yellow
|
||||||
|
-
|
||||||
|
# subcategories
|
||||||
|
regexp=\w+\.(\S+(?=\.))\.
|
||||||
|
colours=unchanged,magenta
|
||||||
|
-
|
||||||
|
# error
|
||||||
|
regexp=sysctl: permission denied on key '([^']+)'
|
||||||
|
colours=red,bold red
|
41
colourfiles/conf.systemctl
Normal file
41
colourfiles/conf.systemctl
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Name
|
||||||
|
regexp=\.service\s
|
||||||
|
colours=bright_white
|
||||||
|
-
|
||||||
|
regexp=\.mount\s
|
||||||
|
colours=magenta
|
||||||
|
-
|
||||||
|
regexp=\.device\s
|
||||||
|
colours=blue
|
||||||
|
-
|
||||||
|
regexp=\.socket\s
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
regexp=\.slice\s
|
||||||
|
colours=dark red
|
||||||
|
-
|
||||||
|
regexp=\.path\s
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
regexp=\.target\s
|
||||||
|
colours=dark magenta
|
||||||
|
-
|
||||||
|
regexp=\.timer\s
|
||||||
|
colours=dark cyan
|
||||||
|
-
|
||||||
|
regexp=\.swap\s
|
||||||
|
colours=bright_magenta
|
||||||
|
-
|
||||||
|
regexp=\sloaded\s
|
||||||
|
colours=cyan
|
||||||
|
-
|
||||||
|
regexp=\sactive\s
|
||||||
|
colours=green
|
||||||
|
-
|
||||||
|
# exited
|
||||||
|
regexp=exited
|
||||||
|
colours=red
|
||||||
|
-
|
||||||
|
# running
|
||||||
|
regexp=running
|
||||||
|
colours=green
|
15
colourfiles/conf.tcpdump
Normal file
15
colourfiles/conf.tcpdump
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Title
|
||||||
|
regexp=on ([^,]+), link-type (\S+)
|
||||||
|
colours=unchanged, bold green, green
|
||||||
|
-
|
||||||
|
# Basic Line (-nS)
|
||||||
|
regexp=^(\d+):(\d+):(\d+\.\d+) (\S+) (\S+) (>) (\S+):
|
||||||
|
colours=unchanged,bold white,bright_white,dark white,cyan, bright_green, bold red, bright_blue
|
||||||
|
-
|
||||||
|
# IP
|
||||||
|
regexp=(?:\d{1,3}\.){3}(?:\d{1,3})
|
||||||
|
colours=bold
|
||||||
|
-
|
||||||
|
# Summary
|
||||||
|
regexp=^(\d+) packets
|
||||||
|
colours=unchanged,bold green
|
@ -1,6 +1,6 @@
|
|||||||
# hostname
|
# hostname
|
||||||
regexp=\s\w+[\w\-\.]+\w+
|
regexp=\s\w+[\w\-\.]+\w+
|
||||||
colours=bold yellow
|
colours=bold white
|
||||||
count=once
|
count=once
|
||||||
-
|
-
|
||||||
# ip number
|
# ip number
|
||||||
@ -24,10 +24,8 @@ regexp=\bDUP
|
|||||||
colours=red
|
colours=red
|
||||||
-
|
-
|
||||||
# !S, !A, !H (host unreachable), etc.
|
# !S, !A, !H (host unreachable), etc.
|
||||||
regexp=\b\![AFGNPSTU]
|
regexp=\s\!([HNPSFXVC]|\d+)
|
||||||
colours=red
|
colours=red
|
||||||
# just an example:
|
|
||||||
#command=echo 'Network is down'| mail root
|
|
||||||
-
|
-
|
||||||
# ttl=...!
|
# ttl=...!
|
||||||
regexp=ttl=\d+\!
|
regexp=ttl=\d+\!
|
3
colourfiles/conf.tune2fs
Normal file
3
colourfiles/conf.tune2fs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Values
|
||||||
|
regexp=^([^:]+):(.+)$
|
||||||
|
colours=default,cyan
|
11
colourfiles/conf.ulimit
Normal file
11
colourfiles/conf.ulimit
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# ( )
|
||||||
|
regexp=\((?:([^,)]+),\s)?(-\w)\)
|
||||||
|
colours=default,magenta,cyan
|
||||||
|
-
|
||||||
|
# unlimited
|
||||||
|
regexp=\sunlimited
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
# number
|
||||||
|
regexp=\s\d+
|
||||||
|
colours=yellow
|
16
colourfiles/conf.uptime
Normal file
16
colourfiles/conf.uptime
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Regular Up
|
||||||
|
regexp=\sup(?: (\d+) days?,)? +(\d+ min|\d+:\d+)(?=,)
|
||||||
|
colours=green,bold green, bold green
|
||||||
|
-
|
||||||
|
# users
|
||||||
|
regexp=\b(\d+) users?
|
||||||
|
colours=yellow,bold yellow
|
||||||
|
-
|
||||||
|
# load average
|
||||||
|
regexp=load average: (\d+[\.,]\d+),\s(\d+[\.,]\d+),\s(\d+[\.,]\d+)
|
||||||
|
colours=default,bright_cyan,cyan,dark cyan
|
||||||
|
-
|
||||||
|
# W Command section
|
||||||
|
# Title
|
||||||
|
regexp=^USER.*$
|
||||||
|
colours=bold
|
20
colourfiles/conf.vmstat
Normal file
20
colourfiles/conf.vmstat
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# Title
|
||||||
|
regexp=(procs)\s(-+memory-+)\s(-+swap-+)\s(-+io-+)\s(-+system-+)\s(-+cpu-+)
|
||||||
|
colours=default,bold,bold cyan,bold magenta,bold blue, bold green, bold red
|
||||||
|
-
|
||||||
|
# rows
|
||||||
|
regexp=^(\s*\w+\s+\w+)\s+(\w+\s+\w+\s+\w+\s+\w+)\s+(\w+\s+\w+)\s+(\w+\s+\w+)\s+(\w+\s+\w+)\s+(\w+\s+\w+\s+\w+\s+\w+\s+\w+)
|
||||||
|
colours=default,default,bright_cyan,bright_magenta,bright_blue,bright_green,bright_red
|
||||||
|
-
|
||||||
|
# ============================ DISK MODE =================================
|
||||||
|
# Title disk mode
|
||||||
|
regexp=^(disk-)\s(-+reads-+)\s(-+writes-+)\s(-+IO-+)
|
||||||
|
colours=default,bold,bold green,bold magenta,bold blue
|
||||||
|
-
|
||||||
|
# Title disk mode
|
||||||
|
regexp=(\s+)(total\s+merged\s+sectors\s+ms)\s+(total\s+merged\s+sectors\s+ms)\s+(cur\s+sec)
|
||||||
|
colours=default,bold,bold green,bold magenta,bold blue
|
||||||
|
-
|
||||||
|
# rows disk mode
|
||||||
|
regexp=^(\S+)\s+(\d+\s+\d+\s+\d+\s+\d+)\s+(\d+\s+\d+\s+\d+\s+\d+)\s+(\d+\s+\d+)
|
||||||
|
colours=default,bright_white,bright_green,bright_magenta,bright_blue
|
76
colourfiles/conf.whois
Normal file
76
colourfiles/conf.whois
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
# field
|
||||||
|
regexp=^([\w\s])*:
|
||||||
|
colours=bold white
|
||||||
|
=======
|
||||||
|
# data
|
||||||
|
regexp=:\s[\w\s\W\S]*$
|
||||||
|
colour=blue
|
||||||
|
=======
|
||||||
|
# comments
|
||||||
|
regexp=^([;%])([\s\w\S\W])*$
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# comments
|
||||||
|
regexp=(^(---)|(>>>))[\s\w\S\W]*$
|
||||||
|
colours=yellow
|
||||||
|
=======
|
||||||
|
# domain
|
||||||
|
regexp=(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})
|
||||||
|
colours=green
|
||||||
|
=======
|
||||||
|
# url
|
||||||
|
regexp=http[s]?://(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})(/[\w\d\S\s]*)*
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# phone
|
||||||
|
regexp=\+([\d\.]*)
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# email
|
||||||
|
regexp=([\d\w\S])+@(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# date
|
||||||
|
regexp=([\d]{4}[- ](([\d]{2})|([a-zA-Z]{3,}))[ -][\d]{2})|([\d]{2}[ -](([a-zA-Z]{3,})|([\d]{2}))[ -][\d]{4})
|
||||||
|
colours=bold red
|
||||||
|
=======
|
||||||
|
# time
|
||||||
|
regexp=[\d]{2}:[\d]{2}:[\d]{2}((\.[\d]*[Z]?)|(\+[\d]*))?
|
||||||
|
colours=red
|
||||||
|
=======
|
||||||
|
# NOTICE
|
||||||
|
regexp=NOTICE
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# TERM OF USE
|
||||||
|
regexp=TERMS OF USE
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# registrar
|
||||||
|
regexp=(Sponsoring )?[Rr]egistrar([\w\s\S])*:
|
||||||
|
colours=bold cyan
|
||||||
|
=======
|
||||||
|
# registrant
|
||||||
|
regexp=(Registry )?[Rr]egistrant([\w\s\S])*:
|
||||||
|
colours=bold blue
|
||||||
|
=======
|
||||||
|
# admin
|
||||||
|
regexp=(Registry )?[Aa]dmin([\w\s\S])*:
|
||||||
|
colours=bold magenta
|
||||||
|
=======
|
||||||
|
# tech
|
||||||
|
regexp=(Registry )?[Tt]ech([\w\s\S])*:
|
||||||
|
colours=bold yellow
|
||||||
|
=======
|
||||||
|
# billing
|
||||||
|
regexp=(Registry )?[Bb]illing([\w\s\S])*:
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# NS
|
||||||
|
regexp=((nserver)|(Name Server)):
|
||||||
|
colours=bold green
|
||||||
|
=======
|
||||||
|
# domain status
|
||||||
|
regexp=(Domain Status)|(status)
|
||||||
|
colours=bold red
|
||||||
|
|
35
colourfiles/conf.yaml
Normal file
35
colourfiles/conf.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
# Document
|
||||||
|
regexp=---
|
||||||
|
colours=bold yellow
|
||||||
|
-
|
||||||
|
# First level
|
||||||
|
regexp=^(\S+):
|
||||||
|
colours=unchanged,blue
|
||||||
|
-
|
||||||
|
# Nested
|
||||||
|
regexp=^ +(\S+):
|
||||||
|
colours=unchanged,blue
|
||||||
|
-
|
||||||
|
# Set Var
|
||||||
|
regexp=&\S+
|
||||||
|
colours=bold green
|
||||||
|
-
|
||||||
|
# Use Var
|
||||||
|
regexp=\*\S+
|
||||||
|
colours=on_green black
|
||||||
|
-
|
||||||
|
# Array
|
||||||
|
regexp=-\s
|
||||||
|
colours=bold magenta
|
||||||
|
-
|
||||||
|
# << Inheritance
|
||||||
|
regexp=<<
|
||||||
|
colours=bold red
|
||||||
|
-
|
||||||
|
# Explicit String
|
||||||
|
regexp="(\S*)(?=")
|
||||||
|
colours=default,cyan
|
||||||
|
-
|
||||||
|
# Explicit Number
|
||||||
|
regexp= (\d*)$
|
||||||
|
colours=unchanged,yellow
|
@ -1,14 +0,0 @@
|
|||||||
regexp=^checking
|
|
||||||
colours=bold blue
|
|
||||||
.........
|
|
||||||
regexp=\.\.\. .*$
|
|
||||||
colours=bold yellow
|
|
||||||
.........
|
|
||||||
regexp=\.\.\. yes$
|
|
||||||
colours=bold cyan
|
|
||||||
.........
|
|
||||||
regexp=\.\.\. no$
|
|
||||||
colours=bold red
|
|
||||||
.........
|
|
||||||
regexp=\.\.\.[ ]
|
|
||||||
colours=default
|
|
39
conf.df
39
conf.df
@ -1,39 +0,0 @@
|
|||||||
# FS
|
|
||||||
regexp=^.*?\s
|
|
||||||
colours=green
|
|
||||||
======
|
|
||||||
# Size 'K'
|
|
||||||
regexp=\s\d*[.,]?\dKi?\s
|
|
||||||
colours=green
|
|
||||||
======
|
|
||||||
# Size 'M'
|
|
||||||
regexp=\s\d*[.,]?\dMi?\s
|
|
||||||
colours=yellow
|
|
||||||
======
|
|
||||||
# Size 'G'
|
|
||||||
regexp=\s\d*[.,]?\dGi?\s
|
|
||||||
colours=red
|
|
||||||
======
|
|
||||||
# Size 'T'
|
|
||||||
regexp=\s\d*[.,]?\dTi?\s
|
|
||||||
colours=bold red
|
|
||||||
======
|
|
||||||
# Mounted on
|
|
||||||
regexp=/[-\w\d./]*
|
|
||||||
colours=bold green
|
|
||||||
======
|
|
||||||
# Use 0-60%
|
|
||||||
regexp=[1-6][0-9]?%|0%
|
|
||||||
colours=green
|
|
||||||
======
|
|
||||||
# Use 70-90%
|
|
||||||
regexp=[7-9][0-9]%
|
|
||||||
colours=yellow
|
|
||||||
======
|
|
||||||
# Use 90-95
|
|
||||||
regexp=[9][0-5]%
|
|
||||||
colours=red
|
|
||||||
======
|
|
||||||
# Use 95-100
|
|
||||||
regexp=[9][5-9]%|100%
|
|
||||||
colours=bold red
|
|
29
conf.dig
29
conf.dig
@ -1,29 +0,0 @@
|
|||||||
#ipv6
|
|
||||||
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
|
|
||||||
colours=green
|
|
||||||
=======
|
|
||||||
#time
|
|
||||||
regexp=\s[0-9]{1,6}\s
|
|
||||||
colours=red
|
|
||||||
=======
|
|
||||||
#type
|
|
||||||
regexp=[A-Z]{1,4}
|
|
||||||
colours=cyan
|
|
||||||
=======
|
|
||||||
#in
|
|
||||||
regexp=(IN|CH)
|
|
||||||
colours=yellow
|
|
||||||
=======
|
|
||||||
#domain
|
|
||||||
regexp=[a-z0-9-]+\.
|
|
||||||
colours=magenta
|
|
||||||
=======
|
|
||||||
#ip address
|
|
||||||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
|
||||||
colours=green
|
|
||||||
=======
|
|
||||||
#comments
|
|
||||||
regexp=^;;\s\w*\s*\w*
|
|
||||||
colours=yellow
|
|
||||||
#=======
|
|
||||||
|
|
53
conf.log
53
conf.log
@ -1,53 +0,0 @@
|
|||||||
# this configuration file is suitable for displaying kernel log files
|
|
||||||
|
|
||||||
|
|
||||||
# example of text substitution
|
|
||||||
#regexp=\bda?emon
|
|
||||||
#replace=angel
|
|
||||||
#colours=red
|
|
||||||
#======
|
|
||||||
# example of text substitution
|
|
||||||
#regexp=(\d\d):(\d\d):(\d\d)
|
|
||||||
#replace=\1h\2m\3s
|
|
||||||
#======
|
|
||||||
|
|
||||||
# display this line in yellow and stop further processing
|
|
||||||
regexp=.*last message repeated \d+ times$
|
|
||||||
colours=yellow
|
|
||||||
count=stop
|
|
||||||
======
|
|
||||||
# this is date
|
|
||||||
regexp=^... (\d| )\d \d\d:\d\d:\d\d(\s[\w\d]+?\s)
|
|
||||||
colours=green, green, red
|
|
||||||
count=once
|
|
||||||
======
|
|
||||||
# everything in parentheses
|
|
||||||
regexp=\(.+?\)
|
|
||||||
colours=green
|
|
||||||
count=more
|
|
||||||
======
|
|
||||||
# everything in `'
|
|
||||||
regexp=\`.+?\'
|
|
||||||
colours=bold yellow
|
|
||||||
count=more
|
|
||||||
======
|
|
||||||
# this is probably a pathname
|
|
||||||
regexp=/[\w/\.]+
|
|
||||||
colours=bold green
|
|
||||||
count=more
|
|
||||||
======
|
|
||||||
# name of process and pid
|
|
||||||
regexp=([\w/\.\-]+)(\[\d+?\])
|
|
||||||
colours=bold blue, bold red
|
|
||||||
count=more
|
|
||||||
======
|
|
||||||
# ip number
|
|
||||||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
|
||||||
colours=bold magenta
|
|
||||||
count=more
|
|
||||||
======
|
|
||||||
# connect requires special attention
|
|
||||||
regexp=connect
|
|
||||||
colours=on_red
|
|
||||||
count=more
|
|
||||||
|
|
31
conf.ls
31
conf.ls
@ -1,31 +0,0 @@
|
|||||||
# size
|
|
||||||
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
|
|
||||||
colours=yellow
|
|
||||||
=======
|
|
||||||
# time
|
|
||||||
regexp=(\s|^)\d+(:\d+)+(?=[\s,]|$)
|
|
||||||
colours=bold green
|
|
||||||
=======
|
|
||||||
# mounth
|
|
||||||
regexp=\s[a-z]{3}\s
|
|
||||||
colours=yellow
|
|
||||||
=======
|
|
||||||
#regexp=(?<=\d):(?=\d)
|
|
||||||
#colours=bold yellow
|
|
||||||
#=======
|
|
||||||
# root
|
|
||||||
regexp=root|wheel(?=\s|$)
|
|
||||||
colours=bold red
|
|
||||||
=======
|
|
||||||
# -rwxrwxrwx
|
|
||||||
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
|
|
||||||
colours=unchanged,unchanged,bold blue
|
|
||||||
=======
|
|
||||||
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
|
|
||||||
colours=unchanged,unchanged,bold green,unchanged,bold green,unchanged,bold green
|
|
||||||
=======
|
|
||||||
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
|
|
||||||
colours=unchanged,unchanged,bold yellow,unchanged,bold yellow,unchanged,bold yellow
|
|
||||||
=======
|
|
||||||
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
|
|
||||||
colours=unchanged,unchanged,bold red,unchanged,bold red,unchanged,bold red
|
|
19
conf.mount
19
conf.mount
@ -1,19 +0,0 @@
|
|||||||
#/full/path
|
|
||||||
regexp=\s/[-\w\d.]+(\s|/[-\w\d./]+)
|
|
||||||
colours=cyan
|
|
||||||
=======
|
|
||||||
#filesystem
|
|
||||||
regexp=^\w+\s
|
|
||||||
colours=yellow
|
|
||||||
=======
|
|
||||||
#type filesystem
|
|
||||||
#regexp=(?<=type)\s*
|
|
||||||
#colours=red
|
|
||||||
#=======
|
|
||||||
# /dev/sda
|
|
||||||
regexp=^(/dev/)?[s]d[a-f][0-9]*(?=[^\w\d]|$)
|
|
||||||
colours=bold green
|
|
||||||
=======
|
|
||||||
#mount options
|
|
||||||
regexp=(?<=[,(])[^,]*(?=[,)])
|
|
||||||
colours=green
|
|
@ -1,5 +0,0 @@
|
|||||||
# Intended for colouring 'mount' output
|
|
||||||
# written by Emanuele Aina
|
|
||||||
|
|
||||||
regexp=^(.*) on (.*) type (.*) \((.*)\)
|
|
||||||
colours=default,green,yellow,blue,magenta
|
|
15
conf.mtr
15
conf.mtr
@ -1,15 +0,0 @@
|
|||||||
#ip address
|
|
||||||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
|
||||||
colours=green
|
|
||||||
=======
|
|
||||||
# %
|
|
||||||
regexp=[0-9]{1,2}\.\d{1}%
|
|
||||||
colours=yellow
|
|
||||||
=======
|
|
||||||
# unknow host
|
|
||||||
regexp=\?\?\?
|
|
||||||
colours=red
|
|
||||||
=======
|
|
||||||
# Packets/Pings
|
|
||||||
regexp=(Packets|Pings)
|
|
||||||
colours=bold green
|
|
47
conf.ps
47
conf.ps
@ -1,47 +0,0 @@
|
|||||||
# /full/path
|
|
||||||
regexp=(\s|^)/[-\w\d.]+/[-\w\d./]+
|
|
||||||
colours=white
|
|
||||||
=======
|
|
||||||
# CAPS LINE
|
|
||||||
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
|
|
||||||
colours=underline
|
|
||||||
=======
|
|
||||||
# Capd Line
|
|
||||||
regexp=^([A-Z][-a-z0-9]+(\s+|$)){3,}$
|
|
||||||
colours=underline
|
|
||||||
=======
|
|
||||||
# VMSTAT
|
|
||||||
regexp=(\s|^)\d+([.,]\d+)?(?=[\s,]|$)
|
|
||||||
colours=bold green
|
|
||||||
=======
|
|
||||||
# n.n.n
|
|
||||||
regexp=(\s|^)\d+\.\d+\.\d+(?=[\s,]|$)
|
|
||||||
colours=bold cyan
|
|
||||||
=======
|
|
||||||
# text:
|
|
||||||
regexp=^([-a-z0-9]+):\s
|
|
||||||
colours=unchanged,yellow
|
|
||||||
=======
|
|
||||||
# -options
|
|
||||||
regexp=(?<=\s)-[\w\d]+(?=\s|$)
|
|
||||||
colours=yellow
|
|
||||||
=======
|
|
||||||
# --long-option=
|
|
||||||
regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=?)
|
|
||||||
colours=cyan,white
|
|
||||||
=======
|
|
||||||
# [text]
|
|
||||||
regexp=\[[-\w\d:/]+\]
|
|
||||||
colours=cyan
|
|
||||||
=======
|
|
||||||
# root
|
|
||||||
regexp=root|wheel(?=\s|$)
|
|
||||||
colours=red
|
|
||||||
=======
|
|
||||||
# pts
|
|
||||||
regexp=(\s|^)pts/\d+(?=[^\w\d]|$)
|
|
||||||
colours=bold yellow
|
|
||||||
=======
|
|
||||||
# tty
|
|
||||||
regexp=(\s|^)tty\d+(?=[^\w\d]|$)
|
|
||||||
colours=bold cyan
|
|
2
contrib/mrsmith/README.md
Normal file
2
contrib/mrsmith/README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
alternative configuration files for some commands, contributed by mrsmith
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user