mirror of https://github.com/garabik/grc.git
Compare commits
204 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 | |
|
2789838164 | |
|
96073d8766 | |
|
ff14ccb730 | |
|
60830a9d05 |
3
INSTALL
3
INSTALL
|
@ -16,7 +16,7 @@ If you have a debian system with all necessary packages installed, type
|
|||
|
||||
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
|
||||
|
||||
2) copy grc.conf into /etc/
|
||||
|
@ -33,3 +33,4 @@ else:
|
|||
|
||||
If you're on OS X and using Homebrew,
|
||||
brew install grc
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Generic Colouriser
|
||||
|
||||
Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
|
||||
garabik @ kassiopeia.juls.savba.sk
|
||||
Radovan Garabík <http://kassiopeia.juls.savba.sk/~garabik/software/grc.html> (garabik @ kassiopeia.juls.savba.sk)
|
||||
|
||||
For the impatient - try following commands:
|
||||
|
||||
|
@ -130,7 +129,7 @@ in your `/etc/grc.conf`, then typing `grc cat /var/log/syslog` will use `conf.lo
|
|||
## Miscellaneous remarks:
|
||||
|
||||
You should get yourself familiar with regular expressions. Good reading is
|
||||
at http://docs.python.org/dev/howto/regex.html
|
||||
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.
|
||||
|
@ -162,9 +161,9 @@ there can be more attributes per line (separated by space), e.g.
|
|||
|
||||
will display pathnames in bold blinking green
|
||||
|
||||
## Python 3 compatibility
|
||||
## Python 2 & 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.
|
||||
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
|
||||
|
||||
|
@ -178,16 +177,36 @@ 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
|
||||
## Automatic aliases
|
||||
|
||||
source /etc/grc.bashrc
|
||||
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`:
|
||||
[[ -s "/etc/grc.bashrc" ]] && source /etc/grc.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
|
||||
|
||||
(assuming you copied `grc.bashrc` and `grc.zsh` to `/etc`)
|
||||
### 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
|
||||
|
|
|
@ -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
|
|
@ -8,16 +8,24 @@ colours=unchanged,underline green,bright_green
|
|||
======
|
||||
# UUID
|
||||
regexp=\sUUID="([^"]+)
|
||||
colours=default,blue
|
||||
colours=bold yellow,blue
|
||||
======
|
||||
#UUID_SUB
|
||||
regexp=\sUUID_SUB="([^"]+)
|
||||
colours=green,bright_green
|
||||
======
|
||||
# TYPE
|
||||
regexp=TYPE="([^"]+)
|
||||
colours=default,cyan
|
||||
colours=bold cyan,cyan
|
||||
======
|
||||
# LABEL
|
||||
regexp=LABEL="([^"]+)
|
||||
colours=default,bright_cyan
|
||||
regexp=\sLABEL="([^"]+)
|
||||
colours=bold bright_cyan,bright_cyan
|
||||
======
|
||||
# PARTLABEL
|
||||
regexp=\sPARTLABEL="([^"]+)
|
||||
colours=bold green,red
|
||||
# PARTUUID
|
||||
regexp=PARTUUID="([^"]+)
|
||||
colours=default,magenta
|
||||
colours=green,magenta
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -16,7 +16,7 @@ colours=red
|
|||
======
|
||||
# PORTS
|
||||
regexp=((?:\d{1,3}\.){3}\d{1,3}):(\d+)
|
||||
colours=default,blue,bold blue
|
||||
colours=default,blue,bold blue
|
||||
======
|
||||
# Error Line
|
||||
regexp=^error\s(?:\w+\s)+([a-z\-_0-9]+):(.*)$
|
|
@ -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
|
|
@ -1,9 +1,9 @@
|
|||
# Main Nodes
|
||||
regexp=^(\S[^:]+):\s(.*)$
|
||||
regexp=^(\S[^:]+):\s?(.*)?$
|
||||
colours=default,cyan
|
||||
======
|
||||
# Sub Nodes
|
||||
regexp=^\s([^:]+):\s(.*)$
|
||||
regexp=^\s([^:]+):\s?(.*)?$
|
||||
colours=default,magenta
|
||||
======
|
||||
# Warning
|
|
@ -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
|
|
@ -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
|
|
@ -7,19 +7,31 @@ regexp=\s+[\.\/]+([\w\s\-\_\.]+)(\/.*)?$
|
|||
colours=default,bold blue,blue
|
||||
======
|
||||
# Size 'K'
|
||||
regexp=^\d*[.,]?\dKi?\s
|
||||
regexp=^\d{1,3}\s
|
||||
colours=green
|
||||
======
|
||||
regexp=^ ?\d*[.,]?\dKi?\s
|
||||
colours=green
|
||||
======
|
||||
# Size 'M'
|
||||
regexp=^\d*[.,]?\dMi?\s
|
||||
regexp=^\d{4,6}\s
|
||||
colours=yellow
|
||||
======
|
||||
regexp=^ ?\d*[.,]?\dMi?\s
|
||||
colours=yellow
|
||||
======
|
||||
# Size 'G'
|
||||
regexp=^\d*[.,]?\dGi?\s
|
||||
regexp=^\d{7,9}\s
|
||||
colours=red
|
||||
======
|
||||
regexp=^ ?\d*[.,]?\dGi?\s
|
||||
colours=red
|
||||
======
|
||||
# Size 'T'
|
||||
regexp=^\d*[.,]?\dTi?\s
|
||||
regexp=^\d{10,12}\s
|
||||
colours=bold red
|
||||
======
|
||||
regexp=^ ?\d*[.,]?\dTi?\s
|
||||
colours=bold red
|
||||
======
|
||||
# Total
|
|
@ -0,0 +1,4 @@
|
|||
# for testing purposes, do match but do not change anything
|
||||
regexp=([a-g]+)
|
||||
colour=''
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -1,17 +1,17 @@
|
|||
# Size 'K'
|
||||
regexp=\s\d*[.,]?\dKi?
|
||||
regexp=\s\d*[.,]?\dKi?|\b\d{1,3}\b
|
||||
colours=green
|
||||
======
|
||||
# Size 'M'
|
||||
regexp=\s\d*[.,]?\dMi?
|
||||
regexp=\s\d*[.,]?\dMi?|\b\d{4,6}\b
|
||||
colours=yellow
|
||||
======
|
||||
# Size 'G'
|
||||
regexp=\s\d*[.,]?\dGi?
|
||||
regexp=\s\d*[.,]?\dGi?|\b\d{7,9}\b
|
||||
colours=red
|
||||
======
|
||||
# Size 'T'
|
||||
regexp=\s\d*[.,]?\dTi?
|
||||
regexp=\s\d*[.,]?\dTi?|\b\d{10,12}\b
|
||||
colours=bold red
|
||||
======
|
||||
# Mem
|
|
@ -1,9 +1,9 @@
|
|||
#
|
||||
#
|
||||
regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
|
||||
colours=white bold
|
||||
count=once
|
||||
.........
|
||||
#
|
||||
#
|
||||
regexp=^[^:\s]*?:\d+:
|
||||
colours=bold magenta
|
||||
.........
|
||||
|
@ -11,7 +11,7 @@ regexp=^[^:\s]*?:
|
|||
colours=cyan
|
||||
count=once
|
||||
.........
|
||||
#
|
||||
#
|
||||
regexp=\`[A-Za-z0-9_():&*]+( const)?\'
|
||||
colours=magenta
|
||||
.........
|
||||
|
@ -28,7 +28,7 @@ regexp=\-o\s[^\s]+
|
|||
colours=yellow
|
||||
.........
|
||||
# warning and error won't work, unless you redirect also
|
||||
# stderr to grcat
|
||||
# stderr to grcat
|
||||
#
|
||||
# warning
|
||||
regexp=[Ww]arning[:\b]
|
|
@ -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
|
|
@ -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
|
||||
=======
|
||||
# interface
|
||||
regexp=^([a-z0-9]{2,}\d*):?\s
|
||||
regexp=^([a-z0-9.]{2,}\d*):?\s
|
||||
colours=bold green
|
||||
=======
|
||||
#ip disc
|
|
@ -36,7 +36,7 @@ colours=red
|
|||
# "linkdown"
|
||||
regexp=linkdown
|
||||
colours=bold red
|
||||
-
|
||||
-
|
||||
|
||||
# "src"
|
||||
regexp=src \S+
|
|
@ -3,8 +3,12 @@ regexp=inet\s([^\/]+)\/(\d+)
|
|||
colours=default,bold yellow,bold magenta
|
||||
=====
|
||||
# broadcast
|
||||
regexp=brd\s([^}s]+)
|
||||
colours=default,dark
|
||||
regexp=brd\s([^}\s]+)
|
||||
colours=default,dark cyan
|
||||
=====
|
||||
# dynamic
|
||||
regexp=\bdynamic\b
|
||||
colours=dark green
|
||||
=====
|
||||
# IP6
|
||||
regexp=inet6\s([^\/]+)\/(\d+)
|
||||
|
@ -34,6 +38,22 @@ 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
|
|
@ -21,3 +21,11 @@ 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
|
|
@ -11,7 +11,7 @@ regexp=^Chain\s(PREROUTING|POSTROUTING|INPUT|OUTPUT)\s
|
|||
colours=unchanged, bold yellow
|
||||
-
|
||||
# 2row Title
|
||||
regexp=(pkts|target).*
|
||||
regexp=(pkts|target|num).*
|
||||
colours=bold black
|
||||
-
|
||||
# JUMP Destiny ----------------------------------------------------------------
|
|
@ -24,7 +24,7 @@ colours=bold green
|
|||
=======
|
||||
# everything in parentheses
|
||||
regexp=\(.+?\)
|
||||
colours=green
|
||||
colours=green
|
||||
count=more
|
||||
=======
|
||||
# channel name
|
|
@ -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
|
|
@ -0,0 +1,9 @@
|
|||
# BASH
|
||||
regexp=\[(\d+)\](.) +(\d+)?\s?
|
||||
colour=unchanged, cyan, yellow, magenta
|
||||
-
|
||||
regexp=Running.*
|
||||
colour=bold green
|
||||
-
|
||||
regexp=Stopped.*
|
||||
colour=red
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
|||
# Intended for colouring LDIF output (from ldap tools)
|
||||
# comments
|
||||
# comments
|
||||
regexp=^#.*
|
||||
colours=green
|
||||
count=stop
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
#Message
|
||||
regexp=([^\w\d]+)
|
||||
colours=unchanged
|
||||
======
|
||||
regexp=([a-zA-Z0-9]+)
|
||||
colours=default,green,yellow,red
|
||||
|
|
@ -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
|
|
@ -1,7 +1,3 @@
|
|||
# Filename
|
||||
regexp=\S+\s(\S+)
|
||||
colours=bold
|
||||
-
|
||||
# Normal
|
||||
regexp=[aAcCdDeijsStTu]
|
||||
colours=cyan
|
||||
|
@ -12,8 +8,16 @@ colours=bright_green
|
|||
-
|
||||
# Read Only
|
||||
regexp=[EhINXZ]
|
||||
colours=red
|
||||
colours=bold red
|
||||
-
|
||||
# Separators
|
||||
regexp=[\-]
|
||||
colours=dark
|
||||
-
|
||||
# Error
|
||||
regexp=(lsattr:) \w.*
|
||||
colours=default, bold red
|
||||
-
|
||||
# Filename
|
||||
regexp=(\/[-\w\d. ]+)+$
|
||||
colours=yellow,bold
|
|
@ -11,23 +11,23 @@ regexp=\s+([├└─│]+|[\|\`\-]+)(\S+)
|
|||
colours=default,default,bright_cyan
|
||||
======
|
||||
# Type crypt
|
||||
regexp=\scrypt\s
|
||||
regexp=(?<=\s)crypt\b
|
||||
colours=on_magenta white
|
||||
======
|
||||
# Type disk
|
||||
regexp=\sdisk\s
|
||||
regexp=(?<=\s)disk\b
|
||||
colours=magenta
|
||||
======
|
||||
# Type lvm
|
||||
regexp=\slvm\s
|
||||
regexp=(?<=\s)lvm\b
|
||||
colours=bold cyan
|
||||
======
|
||||
# Type part
|
||||
regexp=\spart\s
|
||||
regexp=(?<=\s)part\b
|
||||
colours=cyan
|
||||
======
|
||||
# Type loop
|
||||
regexp=\sloop\s
|
||||
regexp=(?<=\s)loop\b
|
||||
colours=bright_red
|
||||
======
|
||||
# Size 'K'
|
||||
|
@ -46,10 +46,14 @@ colours=red
|
|||
regexp=\s\d*[.,]?\dTi?\s
|
||||
colours=bold red
|
||||
======
|
||||
# Mount
|
||||
regexp=\s\/.*$
|
||||
colours=bold yellow
|
||||
# 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
|
|
@ -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
|
|
@ -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
|
||||
-
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -1,45 +1,53 @@
|
|||
# name
|
||||
regexp=(?:[fF]rom|PING)\s(\S+)\s
|
||||
colours=default,blue
|
||||
# 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
|
||||
=======
|
||||
# ip number, optional port
|
||||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\:[0-9]{1,5})?
|
||||
colours=bright_blue
|
||||
=======
|
||||
# icmp_[sr]eq=#
|
||||
regexp=icmp_[sr]eq=(\d+)
|
||||
# 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=default,green
|
||||
colours=green,bold green
|
||||
=======
|
||||
# DUP
|
||||
regexp=DUP\!
|
||||
colours=red
|
||||
=======
|
||||
# Destination Host Unreachable
|
||||
regexp=Destination Host Unreachable
|
||||
# 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
|
||||
-
|
||||
# statustics header
|
||||
regexp=--- \S+ ping statistics ---
|
||||
colours=bold
|
||||
# statistics header
|
||||
regexp=--- (\S+) ping statistics ---
|
||||
colours=bold, bold blue
|
||||
-
|
||||
# last line min/avg/max/mdev
|
||||
regexp=(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\.\ mus]+)\/([0-9\. mus]+)\/([0-9\. mus]+)\/([0-9\. mus]+)
|
||||
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
|
|
@ -2,7 +2,7 @@
|
|||
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
|
||||
colours=yellow
|
||||
=======
|
||||
#
|
||||
#
|
||||
regexp=<=>
|
||||
colours=yellow
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
======
|
|
@ -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
|
|
@ -1,6 +1,14 @@
|
|||
# Local Address:Port
|
||||
regexp=\s((?:\d+\.){3}\d+|\*|::1?|[\w\d\-\_\.]+):(\S+)\s+\s((?:\d+\.){3}\d+|\*|::1?|[\w\d\-\_\.]+):(\S+)
|
||||
colours=default,bright_green,bright_red,cyan,magenta
|
||||
# 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]+
|
||||
|
@ -67,10 +75,6 @@ colours=green
|
|||
regexp=UNKNOWN
|
||||
colours=blink bold red
|
||||
=======
|
||||
# status
|
||||
regexp=\[.*\]
|
||||
colours=green
|
||||
=======
|
||||
# path
|
||||
regexp=(\@)[\dabcdef]+
|
||||
colours=green, bold green
|
|
@ -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
|
|
@ -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
|
||||
regexp=\s\w+[\w\-\.]+\w+
|
||||
colours=bright_yellow
|
||||
colours=bold white
|
||||
count=once
|
||||
-
|
||||
# ip number
|
||||
|
@ -24,10 +24,8 @@ regexp=\bDUP
|
|||
colours=red
|
||||
-
|
||||
# !S, !A, !H (host unreachable), etc.
|
||||
regexp=\b\![AFGNPSTU]
|
||||
regexp=\s\!([HNPSFXVC]|\d+)
|
||||
colours=red
|
||||
# just an example:
|
||||
#command=echo 'Network is down'| mail root
|
||||
-
|
||||
# ttl=...!
|
||||
regexp=ttl=\d+\!
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
44
conf.df
44
conf.df
|
@ -1,44 +0,0 @@
|
|||
# FS
|
||||
#regexp=^.*?\s
|
||||
regexp=^(?!Filesystem).*?\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
|
||||
|
||||
# tmpfs lines
|
||||
regexp=^tmpfs.*
|
||||
colours=bright_black
|
31
conf.dig
31
conf.dig
|
@ -1,31 +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
|
||||
=======
|
||||
#Title
|
||||
regexp=; <<>> DiG (\d+\.\d+\.\d+).*<<>>\s(\S+)$
|
||||
colours=default,green,bold magenta
|
|
@ -1,43 +0,0 @@
|
|||
# HEADERS
|
||||
regexp=(?:\s|^)(REPOSITORY|TAG|IMAGE ID|CREATED|SIZE)(?:\s|$)
|
||||
colours=default,underline
|
||||
=====
|
||||
# REPO, TAG
|
||||
regexp=^([a-z]+\/?[^\s]+)\s+([^\s]+)
|
||||
colours=default,bold white,cyan,bold black
|
||||
=======
|
||||
# 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=unchanged,cyan
|
||||
=====
|
||||
# REPOSITORY (Image name)
|
||||
regexp=^(?:([a-z\-_0-9]+)/)*([a-z\-_0-9]+)\s
|
||||
colours=default,yellow,bright_white
|
||||
=====
|
||||
# images without name
|
||||
regexp=^<none>.*$
|
||||
colours=bold red
|
||||
=====
|
||||
# Size 'K'
|
||||
regexp=\s\d*[\.,]?\d*\sKB?
|
||||
colours=green
|
||||
======
|
||||
# Size 'M', 2 digits
|
||||
regexp=\s\d{1,2}[\.,]?\d*\sMB?
|
||||
colours=green
|
||||
======
|
||||
# Size 'M' 3+ digits
|
||||
regexp=\s\d{3,4}[\.,]?\d*\sMB?
|
||||
colours=yellow
|
||||
======
|
||||
# Size 'G'
|
||||
regexp=\s\d*[\.,]?\d*\sGB?
|
||||
colours=red
|
||||
======
|
||||
# Date Ago
|
||||
regexp=(?:\s{2}|^)(?:\w+\s)+ago
|
||||
colours=cyan
|
|
@ -1,23 +0,0 @@
|
|||
# HEADERS
|
||||
regexp=(?:\s|^)(NETWORK ID|NAME|DRIVER)(?:\s|$)
|
||||
colours=default,underline
|
||||
-
|
||||
# Line
|
||||
regexp=^(?!NETWORK)(\S+)\s+(\S+)
|
||||
colours=default,green,bright_blue
|
||||
-
|
||||
# Bridge
|
||||
regexp=bridge\s+$
|
||||
colours=cyan
|
||||
-
|
||||
# host
|
||||
regexp=host\s+$
|
||||
colours=bright_cyan
|
||||
-
|
||||
# overlay
|
||||
regexp=overlay\s+$
|
||||
colours=magenta
|
||||
-
|
||||
# null
|
||||
regexp=null\s+$
|
||||
colours=red
|
|
@ -1,34 +0,0 @@
|
|||
# This is for docker ps and docker-compose ps
|
||||
# Headers
|
||||
regexp=(?:\s{2}|^)(CONTAINER ID|IMAGE|COMMAND|CREATED|STATUS|PORTS|NAMES|Name|Command|State|Ports)(?:\s|$)
|
||||
colours=default,underline
|
||||
======
|
||||
# Commands (docker ps)
|
||||
regexp=(?:\s{2}|^)(?:\s\")(.*)(?:\")(?:\s{2}|$)
|
||||
colours=magenta
|
||||
=======
|
||||
# Date Ago (docker ps)
|
||||
regexp=(?:\s{2}|^)(?:\w+\s)+ago
|
||||
colours=cyan
|
||||
======
|
||||
# Statuses
|
||||
# https://github.com/docker/docker/blob/e5a3f86e447dd659da3c2e759f3c088a0bfcfe3d/container/state.go#L40
|
||||
# Up
|
||||
regexp=(?:\s{2}|^)(?:Up|Restarting)(?:(?:\s[\w,\d,(,)]+)+)?
|
||||
colours=bold green
|
||||
======
|
||||
# Exited
|
||||
regexp=(?:\s{2}|^)(?:Exited|Exit|Dead|Removal In Progress)(?:(?:\s[\w,\d,(,)]+)+)?
|
||||
colours=bold red
|
||||
=======
|
||||
# Ip Addresses / Ports
|
||||
regexp=(?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\:)?(\d{1,5}))?(->)?(\d{1,5})(\/)(\w+)
|
||||
colours=blue,default,bright_green,default,bright_green,default,bright_blue
|
||||
=======
|
||||
# Name and command in docker-compose ps.
|
||||
regexp=(?:\s{2}|^)(?:[a-z\-_0-9]+)(?:\s{2}|$)(?:\s+(.+?)\s{2,})?
|
||||
colours=bold yellow,magenta
|
||||
=======
|
||||
# Container ID / Image ID and Image. Need to be together to override the "name" regex.
|
||||
regexp=(?:\s{2}|^)([a-z0-9]+)\s{2,}((?:(?:[a-z\-_0-9\.]+)+(\/|:)?)+)
|
||||
colours=default,cyan,default
|
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
|
||||
|
51
conf.ls
51
conf.ls
|
@ -1,51 +0,0 @@
|
|||
# size
|
||||
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
|
||||
colours=yellow
|
||||
=======
|
||||
# device major minor numbers
|
||||
regexp=\s(\d+),\s+(\d+)\s
|
||||
colours=default,bright_yellow ,yellow
|
||||
=======
|
||||
# time
|
||||
regexp=(\s|^)\d+(:\d+)+(?=[\s,]|$)
|
||||
colours=white
|
||||
=======
|
||||
# month
|
||||
#regexp=\s[a-z]{3}\s
|
||||
#colours=yellow
|
||||
#=======
|
||||
#regexp=(?<=\d):(?=\d)
|
||||
#colours=bold yellow
|
||||
#=======
|
||||
# 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
|
19
conf.lspci
19
conf.lspci
|
@ -1,19 +0,0 @@
|
|||
# Address
|
||||
regexp=^(..):(..).(.)
|
||||
colours=default,bright_green,bright_yellow,red
|
||||
-
|
||||
# Ethernet
|
||||
regexp=(Ethernet controller|Network controller)
|
||||
colours=cyan
|
||||
-
|
||||
# Wireless
|
||||
regexp=Wireless
|
||||
colours=bright_cyan
|
||||
-
|
||||
# SATA
|
||||
regexp=SATA controller
|
||||
colours=green
|
||||
-
|
||||
# Audio
|
||||
regexp=Audio device
|
||||
colours=blue
|
11
conf.mount
11
conf.mount
|
@ -1,11 +0,0 @@
|
|||
# Intended for colouring 'mount' output
|
||||
# written by Emanuele Aina
|
||||
|
||||
regexp=^(.*) on (.*) type (.*) \((.*)\)
|
||||
colours=default,green,yellow,blue,magenta
|
||||
=====
|
||||
regexp=^cgroup.*
|
||||
colours=bright_black
|
||||
=====
|
||||
regexp=^tmpfs.*
|
||||
colours=bright_black
|
|
@ -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
|
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
|
12
conf.sysctl
12
conf.sysctl
|
@ -1,12 +0,0 @@
|
|||
# Main
|
||||
regexp=(\w+)\.(\S+) = (.+)$
|
||||
colours=default,bright_green,cyan,yellow
|
||||
-
|
||||
# subcategory
|
||||
regexp=\w+\.(\S+(?=\.))\.
|
||||
colours=unchanged,bright_cyan
|
||||
#-
|
||||
## subcategory
|
||||
#regexp=\.
|
||||
#colours=unchanged
|
||||
#replace=/
|
|
@ -1,7 +0,0 @@
|
|||
# From Address
|
||||
regexp=((\d+\.)+)(\w+)\s>
|
||||
colours=green
|
||||
-
|
||||
# To Address
|
||||
regexp=>\s((\d+\.)+)(\w+)
|
||||
colours=cyan
|
16
conf.uptime
16
conf.uptime
|
@ -1,16 +0,0 @@
|
|||
# Time
|
||||
regexp=\sup(?:\s(\d+ days?),)?\s+(\d+ min|\d+:\d+),
|
||||
colours=default,yellow,green
|
||||
-
|
||||
# users
|
||||
regexp=\s+(\d+)\susers
|
||||
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
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue