2
0
mirror of https://github.com/garabik/grc.git synced 2024-10-28 17:41:01 +01:00

Compare commits

..

No commits in common. "master" and "v1.9" have entirely different histories.
master ... v1.9

122 changed files with 718 additions and 3489 deletions

49
CREDITS
View File

@ -1,44 +1,11 @@
Credits where credits are due:
These people helped me with ideas, support and other things:
Piotr Klaban
Jason Tackaberry
Eivind Tagseth
Edward Betts
Joey Hess
Miguel Gualdron
Daniel Kollár
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
Piotr Klaban <makler@man.torun.pl>
Jason Tackaberry <tack@linux.com>
Eivind Tagseth <eivindt@multinet.no>
Edward Betts <edward@debian.org>
Joey Hess <joey@kitenet.net>
Miguel Gualdron <mig@anet.com>
Daniel Kollar <dkollar@fmph.uniba.sk>
Christian Zuckschwerdt <zany@triq.net>

16
INSTALL
View File

@ -5,18 +5,18 @@ Radovan Garabík <garabik @ kassiopeia.juls.savba.sk>
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
===================================================================
Requirements:
Anything with a python interpreter, with more or less work needed
Requirenments:
anything with python interpreter, with more or less work needed
if it is not unix.
If you have a debian system with all necessary packages installed, type
If you have debian system with all necessary packages installed, type
dpkg-buildpackage (or dpkg-buildpackage -rfakeroot) in the package's
directory, then type
dpkg -i ../grc*deb
else:
1) copy colourfiles/conf.* files into /usr/share/grc/ or /usr/local/share/grc/,
1) copy conf.* files into /usr/share/grc/ or /usr/local/share/grc/,
creating directories when needed
2) copy grc.conf into /etc/
@ -28,9 +28,5 @@ else:
5) modify /etc/grc.conf if you feel like it
There is a small shell script called install.sh provided, which
automatically does the above steps.
If you're on OS X and using Homebrew,
brew install grc
there is a small shell script called install.sh provided, which does
automatically do the above.

239
README Normal file
View File

@ -0,0 +1,239 @@
===================================================================
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)

View File

@ -1,212 +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.
## 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
View File

@ -1,25 +0,0 @@
#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

View File

@ -1,46 +0,0 @@
# 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

View File

@ -1,31 +0,0 @@
# 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

View File

@ -1,11 +0,0 @@
# 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

View File

@ -1,27 +0,0 @@
# 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

View File

@ -1,72 +0,0 @@
# 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

View File

@ -1,44 +0,0 @@
# 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

View File

@ -1,23 +0,0 @@
#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

View File

@ -1,11 +0,0 @@
# Install
regexp=^Installing:
colour=bold green
-
# Main
regexp=^Upgrading:
colour=bold yellow
-
# Main
regexp=^Removing:
colour=bold red

View File

@ -1,23 +0,0 @@
# 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

View File

@ -1,63 +0,0 @@
# 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

View File

@ -1,19 +0,0 @@
# 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

View File

@ -1,23 +0,0 @@
# 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

View File

@ -1,53 +0,0 @@
# 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

View File

@ -1,43 +0,0 @@
# 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

View File

@ -1,27 +0,0 @@
# 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

View File

@ -1,11 +0,0 @@
# Values
regexp=^\s([^:]+):(.+)$
colours=default,cyan
======
# Client
regexp=^(Client):
colours=default,bold cyan
======
# Server
regexp=^(Server):
colours=default,bold green

View File

@ -1,39 +0,0 @@
# 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

View File

@ -1,4 +0,0 @@
# for testing purposes, do match but do not change anything
regexp=([a-g]+)
colour=''

View File

@ -1,3 +0,0 @@
# Main
regexp=^([^=]+)(=)(.*)$
colours=default,cyan,white,yellow

View File

@ -1,35 +0,0 @@
# 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

View File

@ -1,27 +0,0 @@
# 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

View File

@ -1,27 +0,0 @@
# 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

View File

@ -1,31 +0,0 @@
# 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

View File

@ -1,15 +0,0 @@
# 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

View File

@ -1,21 +0,0 @@
# 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

View File

@ -1,11 +0,0 @@
# 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

View File

@ -1,23 +0,0 @@
# 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

View File

@ -1,44 +0,0 @@
# 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

View File

@ -1,59 +0,0 @@
# 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

View File

@ -1,19 +0,0 @@
# 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

View File

@ -1,31 +0,0 @@
# 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

View File

@ -1,88 +0,0 @@
# 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

View File

@ -1,74 +0,0 @@
# 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

View File

@ -1,9 +0,0 @@
# BASH
regexp=\[(\d+)\](.) +(\d+)?\s?
colour=unchanged, cyan, yellow, magenta
-
regexp=Running.*
colour=bold green
-
regexp=Stopped.*
colour=red

View File

@ -1,75 +0,0 @@
# 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

View File

@ -1,47 +0,0 @@
# 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

View File

@ -1,95 +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 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

View File

@ -1,7 +0,0 @@
#Message
regexp=([^\w\d]+)
colours=unchanged
======
regexp=([a-zA-Z0-9]+)
colours=default,green,yellow,red

View File

@ -1,72 +0,0 @@
# 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

View File

@ -1,23 +0,0 @@
# 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

View File

@ -1,59 +0,0 @@
# 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

View File

@ -1,3 +0,0 @@
# Main
regexp=(\S+)\s+(\d+)\s+(\d+)
colours=default,bright_green,cyan,yellow

View File

@ -1,15 +0,0 @@
# 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

View File

@ -1,36 +0,0 @@
# 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
-

View File

@ -1,25 +0,0 @@
# 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

View File

@ -1,15 +0,0 @@
#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

View File

@ -1,92 +0,0 @@
# 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

View File

@ -1,35 +0,0 @@
# 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

View File

@ -1,8 +0,0 @@
# time offset
regexp=offset\s([0-9\.,\-]+\ssec)
colours=unchanged,bold green
======
# server ip
regexp=server\s([0-9a-fA-F\.:]+)
colours=unchanged,yellow

View File

@ -1,60 +0,0 @@
# 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

View File

@ -1,72 +0,0 @@
# /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

View File

@ -1,8 +0,0 @@
# size
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
colours=yellow
=======
#
regexp=<=>
colours=yellow

View File

@ -1,19 +0,0 @@
# 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

View File

@ -1,11 +0,0 @@
# 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

View File

@ -1,23 +0,0 @@
# 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

View File

@ -1,28 +0,0 @@
# 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
======

View File

@ -1,23 +0,0 @@
# 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

View File

@ -1,93 +0,0 @@
=======
# 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

View File

@ -1,32 +0,0 @@
# 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

View File

@ -1,88 +0,0 @@
# 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

View File

@ -1,40 +0,0 @@
# 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

View File

@ -1,11 +0,0 @@
# 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

View File

@ -1,41 +0,0 @@
# 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

View File

@ -1,15 +0,0 @@
# 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

View File

@ -1,3 +0,0 @@
# Values
regexp=^([^:]+):(.+)$
colours=default,cyan

View File

@ -1,11 +0,0 @@
# ( )
regexp=\((?:([^,)]+),\s)?(-\w)\)
colours=default,magenta,cyan
-
# unlimited
regexp=\sunlimited
colours=bold red
-
# number
regexp=\s\d+
colours=yellow

View File

@ -1,16 +0,0 @@
# 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

View File

@ -1,20 +0,0 @@
# 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

View File

@ -1,76 +0,0 @@
# 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

View File

@ -1,35 +0,0 @@
# 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

14
conf.configure Normal file
View File

@ -0,0 +1,14 @@
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 Normal file
View File

@ -0,0 +1,39 @@
# 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 Normal file
View File

@ -0,0 +1,29 @@
#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
#=======

View File

@ -1,7 +1,7 @@
#
regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
colours=white bold
count=once
regexp=\bgcc\b
colours=yellow
count=more
.........
#
regexp=^[^:\s]*?:\d+:
@ -15,10 +15,6 @@ count=once
regexp=\`[A-Za-z0-9_():&*]+( const)?\'
colours=magenta
.........
# compilation method modifiers
regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
colours=yellow
.........
# -O
regexp=\-O\d
colours=green
@ -31,7 +27,7 @@ colours=yellow
# stderr to grcat
#
# warning
regexp=[Ww]arning[:\b]
regexp=warning:.*
colours=white
.........
regexp=warning:
@ -39,7 +35,7 @@ colours=bold yellow
count=once
.........
# error
regexp=[Ee]rror[:\b]
regexp=error:.*
colours=bold white
.........
regexp=error:

View File

@ -16,7 +16,7 @@ regexp=\d+(\.\d+)?\s(T|G|M|K|)i?B
colours=yellow
=======
# interface
regexp=^([a-z0-9.]{2,}\d*):?\s
regexp=^([a-z0-9]{2,}\d*):?\s
colours=bold green
=======
#ip disc

53
conf.log Normal file
View File

@ -0,0 +1,53 @@
# 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 Normal file
View File

@ -0,0 +1,31 @@
# 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 Normal file
View File

@ -0,0 +1,19 @@
#/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

5
conf.mount2 Normal file
View File

@ -0,0 +1,5 @@
# Intended for colouring 'mount' output
# written by Emanuele Aina
regexp=^(.*) on (.*) type (.*) \((.*)\)
colours=default,green,yellow,blue,magenta

15
conf.mtr Normal file
View File

@ -0,0 +1,15 @@
#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

View File

@ -19,7 +19,7 @@ regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
colours=green
=======
# protocols
regexp=(^tcp6?|^udp6?|^unix|^IPX|STREAM|DGRAM)
regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
colours=bold blue
=======
# status

View File

@ -29,10 +29,3 @@ colours=yellow
# unknown host
regexp=.+unknown\shost\s(.+)
colours=red,bold red
=======
regexp=.*icmp_seq=(\d+) timeout
replace=TIMEOUT \1
colours=red

47
conf.ps Normal file
View File

@ -0,0 +1,47 @@
# /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

View File

@ -1,6 +1,6 @@
# hostname
regexp=\s\w+[\w\-\.]+\w+
colours=bold white
colours=bold yellow
count=once
-
# ip number
@ -24,8 +24,10 @@ regexp=\bDUP
colours=red
-
# !S, !A, !H (host unreachable), etc.
regexp=\s\!([HNPSFXVC]|\d+)
regexp=\b\![AFGNPSTU]
colours=red
# just an example:
#command=echo 'Network is down'| mail root
-
# ttl=...!
regexp=ttl=\d+\!

View File

@ -1,2 +0,0 @@
alternative configuration files for some commands, contributed by mrsmith

6
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,6 @@
grc
----------------------
packaged as native package
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk>

73
debian/changelog vendored
View File

@ -1,76 +1,3 @@
grc (1.13.1-1) unstable; urgency=low
* fix `ip addr` broadcast colouring
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sun, 22 Aug 2021 13:36:39 +0200
grc (1.13-2) unstable; urgency=medium
* Source only upload (closes: #983793)
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Fri, 20 Aug 2021 16:38:48 +0200
grc (1.13-1) unstable; urgency=low
* do not add sh aliases unless explicitly allowed in /etc/default/grc
(closes: #984629)
* several minor improvements
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sat, 07 Aug 2021 17:37:55 +0200
grc (1.12-1) unstable; urgency=low
* add new configurations
* improved zsh alias support
* various small bugfixes and improvements
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Mon, 01 Mar 2021 09:41:35 +0100
grc (1.11.3-1) unstable; urgency=medium
* add new configurations
* --colour=auto is now the default
* add dh-python build dependency (closes: #896743)
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sun, 29 Apr 2018 16:12:14 +0200
grc (1.11.2-1) unstable; urgency=low
* add ntpdate configuration command
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sat, 23 Sep 2017 20:35:33 +0200
grc (1.11.1-2) unstable; urgency=low
* fixed python2 compatibility errors (forgotten old changelog commit)
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Wed, 07 Jun 2017 15:01:11 +0200
grc (1.11.1-1) unstable; urgency=low
* fixed python2 compatibility errors
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sun, 21 May 2017 16:01:51 +0200
grc (1.11-1) unstable; urgency=low
* clean up directories
* improve some configuration files
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Fri, 21 Apr 2017 11:06:13 +0200
grc (1.10.1-1) unstable; urgency=low
* make aliases more compatible with zsh anc MacOSX
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sat, 04 Mar 2017 10:04:12 +0100
grc (1.10-1) unstable; urgency=low
* many configuration files added
* python3 compatible
-- Radovan Garabík <garabik@kassiopeia.juls.savba.sk> Sat, 28 Jan 2017 15:48:58 +0100
grc (1.9-1) unstable; urgency=low
* add `colors' as a synonym of `colours' (and the singulars, too)

Some files were not shown because too many files have changed in this diff Show More