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

Compare commits

..

315 Commits
v1.9 ... master

Author SHA1 Message Date
Radovan Garabík
f4a579e08d new minor debian release 2021-08-22 13:38:08 +02:00
Radovan Garabík
c81ae202b1 fix ip addr broadcast colouring 2021-08-22 13:35:37 +02:00
Radovan Garabík
f79a3dc650 source only Debian upload 2021-08-20 16:41:12 +02:00
Radovan Garabík
47e7daa155 update changelog date 2021-08-07 17:44:43 +02:00
Radovan Garabík
223732e54b comment upon GRC_ALIASES=true 2021-08-07 17:37:34 +02:00
Radovan Garabík
ab22533a16 add documentation about automatic aliasing 2021-08-07 16:30:46 +02:00
Radovan Garabík
ea4aa18200 typo 2021-07-26 18:16:33 +02:00
Radovan Garabík
6f0a553c76 env is too invasive to alias 2021-07-26 18:15:22 +02:00
Radovan Garabík
d8fc493d72 preparing new release 2021-07-26 18:11:58 +02:00
Radovan Garabík
09793f88a6 on python 2 & 3 compatibility 2021-07-26 18:04:13 +02:00
Radovan Garabík
e277b6e960 do not exit from the main shell when sourcing 2021-07-26 18:02:08 +02:00
Radovan Garabík
1d7de7ea44 Merge branch 'devel' of github.com:garabik/grc into devel 2021-07-06 20:28:50 +02:00
Radovan Garabík
cffdc86127 update debian build 2021-07-06 20:27:08 +02:00
Radovan Garabík
30ecf4688f add debian /etc/default 2021-07-06 20:10:33 +02:00
Radovan Garabík
db55a51206 clean debian/rules a bit 2021-07-06 20:10:15 +02:00
Radovan Garabík
64c1ba6a0d alias only in terminal 2021-07-06 17:37:37 +02:00
Radovan Garabík
9dd0d18f62 cleanup 2021-07-06 12:47:14 +02:00
Radovan Garabík
c367041dcc
Merge pull request #184 from feriman/fix-ipv6-parsing
IPv6 address consists of hexadecimal digits, so "\d" is unsuitable here.
2021-07-05 16:58:08 +02:00
Radovan Garabík
4ea874b224
Merge pull request #179 from joeky888/free
conf.free: support inhuman free
2021-07-05 16:45:56 +02:00
Vitaliy Perekhovy
ae9cecb66c IPv6 address conists of hexadecimal digits, so "\d" is unsuitable here. 2021-06-11 14:51:07 +03:00
Joeky
b7e96762b4 conf.free: support inhuman free
Signed-off-by: Joeky <joeky5888@gmail.com>
2021-04-20 23:16:19 +08:00
Radovan Garabík
06afa277e0 keep grc.sh profile 2021-03-01 10:26:14 +01:00
Radovan Garabík
e0c5ab25c8 add acute 2021-03-01 10:10:55 +01:00
Radovan Garabík
ca8acefed8 update debian changelog 2021-03-01 09:52:43 +01:00
Radovan Garabík
cb0ee756ca bump version 2021-03-01 09:40:59 +01:00
Radovan Garabík
acd749e705 restore _grc 2021-01-01 21:35:53 +01:00
Radovan Garabík
7cd8fff5e1 moved log and irclog last 2020-12-29 16:42:59 +01:00
Radovan Garabík
357e686aa6
Merge pull request #173 from hjpotter92/update/aliases
Changes as per review.
2020-12-29 16:16:18 +01:00
Radovan Garabík
2fc38520fc dummy configuration file 2020-12-29 16:14:33 +01:00
Radovan Garabík
1844de085c do not crash on invalid utf-8 2020-12-29 16:13:59 +01:00
Radovan Garabík
4e796fbb8d rm cruft 2020-12-29 16:11:54 +01:00
hjpotter92
7eaacb5c4a Changes as per review.
98f483068a (r45477503)

Signed-off-by: hjpotter92 <hjpotter92+github@gmail.com>
2020-12-29 03:26:19 +05:30
Radovan Garabík
a31019fd81 Merge branch 'devel' of github.com:garabik/grc into devel 2020-12-28 17:07:40 +01:00
Radovan Garabík
98f483068a
Merge pull request #172 from hjpotter92/update/aliases
Add completions for aliases when defined for zsh.
2020-12-28 17:07:30 +01:00
Radovan Garabík
f2ace18191 change grc.bashrc to grc.sh, as /etc/profile.d/ works only with .sh extensions 2020-12-28 17:01:17 +01:00
Radovan Garabík
61c070db25
Merge pull request #170 from Raizo62/p_log_ip_port
conf.log : the port of "172.16.1.100:56364" is now fully colored
2020-12-28 16:51:01 +01:00
Radovan Garabík
ce4f6290d8
Merge pull request #168 from Raizo62/p_conf.log
conf.log : accept now empty string "" and empty parentheses ()
2020-12-28 16:49:50 +01:00
Radovan Garabík
eaf4203de1 fix configure command matching 2020-12-28 16:47:45 +01:00
Radovan Garabík
8f7adc0eee fix ldap command matching 2020-12-28 16:45:59 +01:00
Radovan Garabík
e969eeef72 fix du command matching 2020-12-28 16:44:53 +01:00
Radovan Garabík
826422fad6 cli regexp matched too much 2020-12-28 16:40:12 +01:00
hjpotter92
757515996f Add curl and ulimit to colourisable commands.
Signed-off-by: hjpotter92 <hjpotter92+github@gmail.com>
2020-12-28 20:45:20 +05:30
hjpotter92
8eb0e6614b Cleaner if-statement
Signed-off-by: hjpotter92 <hjpotter92+github@gmail.com>
2020-12-28 20:31:41 +05:30
hjpotter92
8275543560 Add completions for aliases when defined for zsh.
More description available on github thread:
https://github.com/ohmyzsh/ohmyzsh/issues/6954

Signed-off-by: hjpotter92 <hjpotter92+github@gmail.com>
2020-12-28 20:29:22 +05:30
Raizo62
4cdaaceb3e conf.log : the port of "172.16.1.100:56364" is now fully colored 2020-12-12 12:50:25 +01:00
Raizo62
ec1eab4f64 conf.log : accept now empty string "" and empty parentheses () 2020-12-06 12:05:32 +01:00
Radovan Garabík
70f4178f37
Merge pull request #164 from junkdog/patch-1
docker ps: ip addresses and ports colorization
2020-11-26 10:21:49 +01:00
Adrian Papari
5ee2461214
Update conf.dockerps 2020-11-24 23:39:52 +01:00
Adrian Papari
5fefb0602f
fix ip addresses and ports colorization 2020-11-24 23:34:41 +01:00
Radovan Garabík
8f5b15e55a tweak license to be not incompatible with GPL 2020-11-24 17:00:13 +01:00
Radovan Garabík
b16ae2647d clean up zsh syntax 2020-11-18 16:44:59 +01:00
Radovan Garabík
371f85a580 fix command boundary 2020-11-13 13:27:05 +01:00
Radovan Garabík
9f61e86374 Merge branch 'devel' of github.com:garabik/grc into devel 2020-11-13 13:26:45 +01:00
Radovan Garabík
f7b36ed2c0 fix command boundaries 2020-11-13 13:26:41 +01:00
Radovan Garabík
7704a1824e
Merge pull request #163 from grassharper/devel
add support for FreeBSD's sockstat command
2020-11-13 13:26:03 +01:00
Andrei Buzoianu
4e1e9d7fdc
add sockstat alias 2020-10-13 17:15:57 +03:00
Andrei Buzoianu
dfb89f2e15
add sockstat alias 2020-10-13 17:15:27 +03:00
Andrei Buzoianu
95da0c8e3a
add regular expression for sockstat 2020-10-13 17:13:36 +03:00
Andrei Buzoianu
3f3fc2932e
update grc.bash to add sockstat alias 2020-10-13 17:08:49 +03:00
Andrei Buzoianu
499fdbff0e
add sockstat colors config file 2020-10-13 17:06:20 +03:00
Radovan Garabík
8263f4f63b
Merge pull request #156 from wwalker/155
Support for FQDNs, and add the journalctl alias to the grc.bash and grc.fish
2020-07-19 13:56:43 +02:00
Radovan Garabík
8c2a0ace74
Merge pull request #131 from Raizo62/devel
grc.conf : command ip and traceroute :
2020-07-19 13:53:49 +02:00
Radovan Garabík
e5f43bf3d8 add aliases to zsh 2020-07-01 17:50:04 +02:00
Radovan Garabík
892c6f6671
Merge pull request #154 from jnovack/patch-7
Create conf.curl
2020-07-01 17:32:41 +02:00
Radovan Garabík
023c88b37b
Merge pull request #153 from jnovack/patch-6
Add support for `go test`
2020-07-01 17:31:35 +02:00
Radovan Garabík
fb14b1a0a0
Merge pull request #151 from jnovack/patch-1
Update conf.dockerps
2020-07-01 17:30:37 +02:00
Wayne Walker
0c615d2904 Support for FQDNs, and add the journalctl alias to the grc.bash and grc.zsh 2020-06-27 13:47:03 -05:00
Justin J. Novack
f2ec76166e
Create conf.curl 2020-06-10 09:54:56 -04:00
Justin J. Novack
92e48627f8
Create conf.go-test 2020-06-10 08:15:43 -04:00
Justin J. Novack
a51b7f0a7b
Update grc.conf
Fixes #122.

Add go-test colorization.
2020-06-10 08:14:30 -04:00
Justin J. Novack
448f19652a
Update conf.dockerps
Correct statuses to call out starting and unhealthy containers
2020-06-09 17:48:11 -04:00
Radovan Garabík
01a21de7fa
Merge pull request #150 from rpolishchuk/rp-fix-135
Change configuration order to sytem-then-user
2020-06-02 21:25:18 +02:00
Radovan Garabík
7d04c05cd0 fix df 2020-06-02 21:12:13 +02:00
Radovan Garabík
3101bb9eb3
Merge pull request #145 from darkain/patch-df
Fixing/extending df command
2020-06-02 20:34:17 +02:00
Rostyslav Polishchuk
fba1ba22b5
Change configuration order to sytem-then-user
If the user creates a user-specific configuration the system-wide
configuration stops working.

This PR changes the order to system-then-user.
The latest found takes precedence.
2020-05-29 18:28:40 -07:00
Radovan Garabík
c910742ee6
Merge pull request #143 from darkain/patch-2
interfaces can have dots in their names
2020-05-24 20:05:26 +02:00
Radovan Garabík
23c1802b4a
Merge pull request #140 from darkain/patch-1
Fixing du colorization
2020-05-24 19:59:14 +02:00
Raizo62
6006304f28 conf.traceroute : - replace \b by \s (see the example below)
- good regular expression for warning messages (letters from : https://linux.die.net/man/8/traceroute)
	- remove the example with the command mail (which report with traceroute ?)

traceroute to 30.0.0.4 (30.0.0.4), 30 hops max, 60 byte packets
 1  10.0.0.2 (10.0.0.2)  0.648 ms  0.479 ms  0.426 ms
 2  23.0.0.3 (23.0.0.3)  1.983 ms  2.402 ms  2.509 ms
 3  23.0.0.3 (23.0.0.3)  3058.805 ms !H  3059.171 ms !H  3058.985 ms !H
2020-03-08 10:51:19 +01:00
Vincent Milum Jr
f6788db3e1
Fixing/extending df command
Fixing some percentages not detecting properly.
Extending support so "df" has colors just like "df -h"
2020-02-03 13:53:44 -08:00
Vincent Milum Jr
0a8a163c03
interfaces can have dots in their names 2020-01-29 05:47:28 +00:00
Vincent Milum Jr
43092396e8
Fixing du colorization
1) du without -h is now supported.
2) du -h can output a 2-digit file size, eg " 25MB", and will have a space character for padding, and this is now accounted for.
2020-01-08 14:02:08 -08:00
Raizo62
1a8a777ee0 grc.conf : command ip :
- accept parameters between "ip" and main parameter
	- accept all correct syntax of "address" ("a", "ad", "add", "addr", "addre",...,"address")
	- do the the same with "link", "route" and "neighbour"
2019-09-14 10:50:55 +02:00
Radovan Garabík
30606591b7
Merge pull request #129 from luisdavim/patch-3
fixes conflicts with some kubectl commands
2019-08-25 13:21:14 +02:00
Luis Davim
77414a6d18
fixes conflicts with some kubectl commands 2019-08-14 13:31:12 +01:00
Radovan Garabík
763fa396b1
Merge pull request #128 from luisdavim/patch-2
also skip colours for kubectl exec
2019-07-31 12:49:22 +02:00
Luis Davim
02f22d4cf4
also skip colours for kubectl exec 2019-07-31 11:39:18 +01:00
Radovan Garabík
01af1fdceb
Merge pull request #127 from luisdavim/patch-2
small improvements
2019-07-24 16:12:11 +02:00
Luis Davim
36ef164987
Update grc.conf 2019-07-24 12:55:32 +01:00
Luis Davim
ad91fc4b2e
ignore if the command is kubectl edit 2019-07-24 12:54:11 +01:00
Luis Davim
e83a11599c
Update conf.kubectl 2019-07-24 12:25:00 +01:00
Luis Davim
074fe6e3b1
small improvements
Improve compatibility with `kubrectl describe` and added a few more "red words"
2019-07-24 10:04:31 +01:00
Radovan Garabík
c414dfd3b4 merge kubectl from luidavim 2019-07-24 10:26:44 +02:00
Radovan Garabík
9367d03d9f
Merge pull request #120 from richarson/richarson-dockerimages
grc.conf: Expand conf.dockerimages regex
2019-07-24 09:03:45 +02:00
Radovan Garabík
75e255c730
Merge pull request #119 from Raizo62/devel
grc.conf : correct the regular expression with ping, traceroute, ip, …
2019-07-24 09:00:48 +02:00
Radovan Garabík
98b4df7bd2
Merge pull request #118 from Raizo62/master
grc.conf : correct the regular expression with ping, traceroute, ip, …
2019-07-24 08:59:27 +02:00
Radovan Garabík
eafbb9dded Merge branch 'devel' of github.com:garabik/grc into devel 2019-07-24 08:48:59 +02:00
Radovan Garabík
5c9d5abec4 Merge branch 'bretello-master' into devel 2019-07-24 08:47:45 +02:00
Radovan Garabík
5981e2ac1c conflict 2019-07-24 08:47:26 +02:00
Radovan Garabík
8267bab647
Merge pull request #113 from derimagia/zsh-autocomplete-fix
Fix zsh completions if --colour is used
2019-07-24 08:35:00 +02:00
Radovan Garabík
c71b244b80
Merge pull request #121 from richarson/richarson-conf.uptime
conf.uptime: Support decimal comma
2019-07-24 08:28:15 +02:00
Ricardo J. Barberis
ee07d1bd15
conf.uptime: Support decimal comma
So load averages also are colourised when e.g. LANG=es_ES
2019-04-25 19:57:24 -03:00
Ricardo J. Barberis
7df059ed67
Expand conf.dockerimages regex
Add 'image ls' and 'image list' as alternatives to 'images'
2019-04-20 15:14:24 -03:00
raizo62
270e11cb83 grc.conf : correct the regular expression with ping, traceroute, ip, journalctl, systemctl, sysctl : the '?' is for '\s', not for the last letter of the command 2019-04-06 11:59:52 +02:00
raizo62
edee9e7591 grc.conf : correct the regular expression with ping, traceroute, ip, journalctl, systemctl, sysctl : the '?' is for '\s', not for the last letter of the command 2019-04-06 11:45:09 +02:00
Dave Wikoff
9302d75f06 Fix zsh completions if --colour is used 2019-01-11 13:05:09 -05:00
Radovan Garabík
b11c36fcba iwconfig quality/level 2018-12-26 21:33:04 +01:00
Radovan Garabík
5ca81657ab
Merge pull request #112 from Raizo62/iwconfig
iwconfig : Bit Rate can contain dots : Bit Rate=43.3 Mb/s
2018-12-26 21:19:34 +01:00
raizo62
4a37b7fc7c iwconfig : Bit Rate can contain dots : Bit Rate=43.3 Mb/s 2018-12-26 12:35:31 +01:00
Radovan Garabík
ae79db506e fix infinite loop if replacement matches regexp again 2018-12-25 20:22:18 +01:00
Radovan Garabík
677295cb8f Merge branch 'kapsh-commands' into devel 2018-12-25 19:32:23 +01:00
Radovan Garabík
b5726877be merge sensors command 2018-12-25 19:31:49 +01:00
Radovan Garabík
c7856d4068 Merge branch 'franga2000-master' into devel 2018-12-24 21:27:06 +01:00
Radovan Garabík
f32d8a1432 conflict 2018-12-24 21:26:56 +01:00
Miha Frangež
2b98e0767d Add config for sensors command 2018-10-09 20:56:13 +02:00
Alexander Kapshuna
dd7ecc05d6 grc.zsh: alias ALL supported commands 2018-10-01 19:27:05 +03:00
Alexander Kapshuna
3abfc841db grc.conf: add missing sensors command 2018-10-01 19:25:05 +03:00
Alexander Kapshuna
7a5f76aeee No need to specify --colour as it defaults to auto 2018-10-01 19:24:39 +03:00
Radovan Garabík
ae88b81759
Merge pull request #108 from erik-valdivieso/master
Fix packet loss percent with dot number
2018-09-26 16:42:52 +02:00
Radovan Garabík
c1cb9b8941
Merge pull request #107 from florianbeer/patch-1
Update logfile config
2018-09-26 16:40:11 +02:00
Radovan Garabík
04665c00b5
Merge pull request #106 from iax7/master
Add new conf files and fix existing
2018-09-26 16:38:26 +02:00
Radovan Garabík
50174b2336
Merge pull request #94 from g0tmi1k/README
Add "Dynamic aliases"
2018-09-26 16:36:39 +02:00
Radovan Garabík
5bc9f4e70f tune lspci 2018-09-26 16:28:45 +02:00
Radovan Garabík
047bcc6c7a
Merge pull request #86 from kapsh/lspci
Tune lspci colors
2018-09-26 16:23:16 +02:00
Erik Valdivieso
f3f76ad382
Fix packet loss percent with dot number
Works with

0%
0.0%
100%
100.0%
2018-08-29 11:31:01 -05:00
Florian Beer
918df658c2
Update logfile config
This commit refines how logfiles are displayed, so it is more suitable for webserver and mailserver logs in addition to generic kernel messages:

* Add colorization of strings in double quotes
* Alter parsing of pathnames to also include common URL path components
* Mark IPv4 and IPv6 addresses
* Detect email addresses
* Detect HTTP verbs and common HTTP and mailserver status codes

I think it is rather nice to look at and easy to visually parse important parts of each log line. Since I've been using this config for a long time on my servers I thought I should give back and make it available to the public.

Merge if you feel like it, if not it is here to copy for anyone that wants to. Thanks @garabik for your awesome tool!
2018-08-24 11:07:13 +02:00
Isaias Pina
1d07328d38
Add kubectl and yaml conf file 2018-08-09 22:14:04 -05:00
g0tmi1k
98ec00d036 Add "Dynamic aliases"
Based on: https://unix.stackexchange.com/questions/148/colorizing-your-terminal-and-shell-environment
2018-07-25 15:18:38 +01:00
Radovan Garabík
d64b7c6523
Merge pull request #92 from iax7/master
Fix color files
2018-07-01 14:59:23 +02:00
Radovan Garabík
681408c3a5
Merge pull request #97 from tasnad/master
Fixed color for the ss command.
2018-07-01 14:54:21 +02:00
Radovan Garabík
e0033c0a23
Merge pull request #99 from fanaugen/add_docker_compose
Add docker-compose to the shell init files
2018-07-01 14:51:14 +02:00
Radovan Garabík
8ec2f1a310
Merge pull request #98 from felixonmars/patch-1
Fix a typo in grc.1
2018-07-01 14:48:33 +02:00
Alex Jahraus
d713c4fbce
Add docker-compose to the shell init files 2018-06-25 17:35:38 +02:00
Felix Yan
692cd20fba
Fix a typo in grc.1 2018-06-11 15:21:11 +08:00
Tasnad Kernetzky
fc39736c78
Fixed conf.ss: Match all IPv6 addresses not only ::1 2018-06-06 11:24:53 +02:00
Tasnad Kernetzky
90de144c31
Merge pull request #1 from tasnad/tasnad-patch
Fix: brackets, address scope; match process name
2018-06-05 19:00:08 +02:00
Tasnad Kernetzky
66efc0dc3a
Fix: brackets, address scope; match process name
Newer versions of ss have a slightly different output syntax: IPv6 addresses are put in brackets (like in URLs).
tcp   LISTEN  0       32                       [::1]:53              [::]:*   
Also, the addresses' scope may be in the output:
192.168.1.1%eth0:68           0.0.0.0:*   users:(("NetworkManager",pid=82,fd=6)) ino:661155 sk:272 <->

I had to move the "status" regex or it would overwrite IPv6 addresses.
2018-06-05 18:57:20 +02:00
Isaias Pina
e9fc71c699
Fix ipaddr, iproute and uptime colors 2018-05-14 15:53:27 -05:00
Isaias Pina
e88d90ff0a
Add common file to highlight words in green,red,yellow 2018-05-14 15:48:48 -05:00
Isaias Pina
4c8b5a799a
Fix dig coloring single chars 2018-05-14 14:44:44 -05:00
Alexander Kapshuna
9c4796ff65 Tune lspci colors 2018-05-03 16:58:44 +03:00
Radovan Garabík
375b6c3443 remove duplicate findmnt 2018-04-29 16:54:46 +02:00
Radovan Garabík
92aac170d0 debian changelog time 2018-04-29 16:12:55 +02:00
Radovan Garabík
ec91099255 fix colliding matches 2018-04-29 16:04:31 +02:00
Radovan Garabík
98612d8fb5 version number 2018-04-29 15:39:28 +02:00
Radovan Garabík
aa6871479c typo 2018-04-29 15:36:56 +02:00
Radovan Garabík
99c13d1fa5 add debian build dependencies 2018-04-29 10:42:04 +02:00
Radovan Garabík
337794041b prepare debian changelog 2018-04-29 10:31:14 +02:00
Radovan Garabík
98302aaf75 Merge branch 'devel' of github.com:garabik/grc into devel 2018-04-29 10:06:31 +02:00
Radovan Garabík
d0420ed646 --colour=auto is not the default 2018-04-29 10:06:20 +02:00
Radovan Garabík
5d7c715ea9
Merge pull request #85 from kapsh/aliases
Consider existing aliases when defining aliases in zsh
2018-04-29 09:43:55 +02:00
Radovan Garabík
dbd246f57a install zsh function only into /usr/local... 2018-04-28 19:25:30 +02:00
Radovan Garabík
c244781df8 nping support 2018-04-28 19:19:42 +02:00
Radovan Garabík
59509cff15
Merge pull request #84 from xPMo/zsh-completion
Support ZSH auto-completion
2018-04-28 19:17:00 +02:00
Radovan Garabík
ad736f824e
Merge pull request #81 from hamon-e/fish_update
do not colorize if output is not a terminal
2018-04-28 19:13:06 +02:00
Radovan Garabík
869a5ebe93
Merge pull request #80 from bladeroot/new-confs
add new configurations
2018-04-28 19:08:12 +02:00
Radovan Garabík
e1c94357fe
Merge pull request #79 from iax7/master
Update regexp for multiple conf files
2018-04-28 19:06:30 +02:00
Radovan Garabík
f47677d6e4
Merge branch 'devel' into master 2018-04-28 19:06:06 +02:00
Alexander Kapshuna
c91450d0fb Consider existing aliases when defining aliases in zsh
Resolve #83
2018-04-07 13:52:43 +03:00
xPMo
50ba64c8bc
don't set COMPLETE_ALIASES
Since grc has a sudo-like completion function, aliases can be expanded properly by Zsh's completion system.
2018-03-09 02:28:36 -06:00
xPMo
fdea4dc477
install _grc to zsh/site-functions 2018-03-09 02:14:30 -06:00
xPMo
f4ecb7249b
add ZSH completion function _grc
Based on zsh's provided _sudo function
2018-03-09 02:11:51 -06:00
Benoit Hamon
bde2b3140a do not colorize if output is not a terminal 2018-02-23 12:32:10 +01:00
Yurii Myronchuk
481e097c76 add new configurations 2018-01-06 14:04:34 +02:00
Isaias Piña
cc1880e6d9
Update conf.sysctl 2017-12-07 15:52:01 -06:00
Isaias Pina
d927c5db24
Fix conf files
Add conf.jobs file
Fix lsattr and df conf files
Fix dockerimages conf file
Update grc.fish
2017-11-23 17:44:36 -06:00
Radovan Garabík
a110dd51bd better fix end of line stripping; strip whitespaces 2017-11-04 21:14:43 +01:00
Radovan Garabík
c43e6a2ca3 fix end of line stripping 2017-11-04 20:48:02 +01:00
Radovan Garabík
4b76c139a5
Merge pull request #70 from iax7/patch-2
Update conf.lsblk to color UUID correctly
2017-11-04 19:57:11 +01:00
Radovan Garabík
1d661756f0 beginning of word 2017-10-09 17:15:20 +02:00
Radovan Garabík
b281df72c4 add ntpdate config file 2017-10-09 17:04:22 +02:00
Radovan Garabík
a734ae32a4 add ntpdate config file 2017-10-09 17:03:06 +02:00
Radovan Garabík
b1d36b1f19 Merge pull request #68 from iax7/patch-1
Error when disk usage is 100%
2017-10-09 16:56:44 +02:00
Radovan Garabík
a67ef384ab Merge pull request #75 from codydiehl/patch-1
Fixed getsebool typo
2017-10-09 16:50:22 +02:00
codydiehl
aa33a0dd6a Fixed getsebool typo
fixed typo on getsebool which was aliased to setsebool
alias getsebool='colourify setsebool'
2017-09-24 20:42:42 -04:00
Isaias Piña
da6c77164d Update conf.lsblk to color UUID correctly 2017-08-09 11:39:37 -05:00
Isaias Piña
471e841d19 Error when disk usage is 100% 2017-08-07 13:44:31 -05:00
Radovan Garabík
582a18533d Merge branch 'devel' of github.com:garabik/grc into devel 2017-06-13 16:14:11 +02:00
Radovan Garabík
1f05d78f45 remove obsolete README.Debian 2017-06-13 16:13:58 +02:00
Radovan Garabík
5609f1dc42 Merge pull request #65 from NoSuck/df-missing-separator
Missing Separator
2017-06-13 15:52:36 +02:00
NoSuck
d13808f5bd Missing Separator
Come on, wussies!  You don't know if a disk truly loves you, until you've pushed her past 95%!
2017-06-07 15:35:00 -04:00
Radovan Garabík
ddc03abfdb forgotten conflict 2017-06-07 15:03:32 +02:00
Radovan Garabík
ffd3b12a40 Merge branch 'devel' 2017-05-21 16:46:51 +02:00
Radovan Garabík
2df1e9725e update changelog 2017-05-21 16:06:39 +02:00
Radovan Garabík
e10d7d257f catch nonexistent command even if conffile matches 2017-05-21 16:00:34 +02:00
Radovan Garabík
8fe23efe77 include grc.zsh and grc.fish in install.sh 2017-05-21 15:48:05 +02:00
Radovan Garabík
160ea4ba1a bump version 2017-05-04 11:16:58 +02:00
Radovan Garabík
f3679d91a1 python2 compatibility if command not found or permission denied (better solution) 2017-04-23 13:35:18 +02:00
Radovan Garabík
987fb4ce98 python2 compatibility if command not found or permission denied 2017-04-23 13:26:44 +02:00
Radovan Garabík
ec7dbb8aa7 add id to bash aliases 2017-04-21 12:46:42 +02:00
Radovan Garabík
5da88f5bcc add idto bash aliases 2017-04-21 11:28:47 +02:00
Radovan Garabík
447e5f9c5d increase version 2017-04-21 11:08:46 +02:00
Radovan Garabík
878ea12536 attribution 2017-04-21 10:54:14 +02:00
Radovan Garabík
6a3d1ca7ba cleaning up directories 2017-04-21 10:50:47 +02:00
Radovan Garabík
e996a792f0 spelling 2017-04-21 10:30:25 +02:00
Radovan Garabík
5758a80b5e spelling 2017-04-21 10:29:25 +02:00
Radovan Garabík
e68ab84feb move conffiles to a separate directory 2017-04-21 10:25:42 +02:00
Radovan Garabík
d3f3aac73a Merge pull request #57 from MatthiasWinkelmann/ls-sizes
Coloring file sizes in ls -l and ls -lh
2017-04-13 13:15:15 +02:00
Radovan Garabík
b39abc0948 Merge pull request #56 from MatthiasWinkelmann/readme
Improved shell integration and instructions
2017-04-13 13:11:29 +02:00
Matthias Winkelmann
d30023cb5f Coloring file sizes in ls -l and ls -lh
Also made Time and Month regex slightly more specific to avoid false positives.
2017-03-28 05:35:12 +02:00
Matthias Winkelmann
7e98851872 Improved shell integration and instructions 2017-03-28 05:28:02 +02:00
Radovan Garabík
6bd39e6581 do not colourify ls by default 2017-03-04 10:23:36 +01:00
Radovan Garabík
1dea43457f iputils ping uses icmp_req 2017-03-04 10:11:47 +01:00
Radovan Garabík
b3c0aafae4 update version 2017-03-04 10:07:23 +01:00
Radovan Garabík
ab975362c3 update changelog 2017-03-04 10:07:00 +01:00
Isaias Pina
2789838164 Add lsof fdisk findmnt tcpdump id commands 2017-02-28 12:25:18 -06:00
Isaias Pina
96073d8766 Move colorfiles to folder 2017-02-28 11:30:13 -06:00
Isaias Pina
ff14ccb730 Merge from garabik/grc 2017-02-28 11:21:08 -06:00
Radovan Garabík
bb1f123b37 fix ping colours ordering 2017-02-17 09:09:16 +01:00
Radovan Garabík
18c9683708 bashrc more compatible with other shells 2017-02-10 10:02:15 +01:00
Radovan Garabík
6b326ef6ec ioping, arping, b2ping 2017-02-09 14:34:06 +01:00
Radovan Garabík
1d1fbddafc typo 2017-02-09 14:33:16 +01:00
Radovan Garabík
a715436fc4 better error message when command is not executable 2017-02-06 20:52:28 +01:00
Radovan Garabík
1516a3e3c7 better error message when command is not found 2017-02-06 19:37:45 +01:00
Radovan Garabík
8c330426fe nping support 2017-02-06 19:11:43 +01:00
Radovan Garabík
ddc789bfc0 remove --color from ls, for MacOSX 2017-02-06 16:12:20 +01:00
Radovan Garabík
bd94adda6c debian package date 2017-01-28 15:50:31 +01:00
Radovan Garabík
d6b256fc12 build dependency 2017-01-28 15:44:37 +01:00
Radovan Garabík
69ecfd408b release version 2017-01-27 16:59:24 +01:00
Radovan Garabík
8baa92d616 do not install bash profile in debian 2017-01-27 16:57:43 +01:00
Radovan Garabík
5bc310369a update credits, remove e-mails 2017-01-27 16:53:52 +01:00
Radovan Garabík
826b7d062b spam-protect e-mails 2017-01-27 16:34:55 +01:00
Radovan Garabík
8c99f75678 python3 build dependency 2017-01-27 16:31:15 +01:00
Radovan Garabík
cab7d78d55 python3 in debian/rules 2017-01-27 16:30:31 +01:00
Radovan Garabík
3125d93c3d python3 debian package dependency 2017-01-27 16:29:44 +01:00
Radovan Garabík
836dcaeff3 Merge branch 'devel' of github.com:garabik/grc into devel 2017-01-27 16:20:06 +01:00
Radovan Garabík
ea5e50953a debian python build dependency 2017-01-19 11:09:36 +01:00
Radovan Garabík
2aa2f36139 debian python-dev dependency 2017-01-19 11:06:46 +01:00
Radovan Garabík
6dd1ff8b95 debian python dependency 2017-01-19 11:05:18 +01:00
Radovan Garabík
0fb534c2ac remove symlink 2017-01-19 10:55:56 +01:00
Radovan Garabík
85b3425a97 delete stray link 2017-01-19 10:52:48 +01:00
Radovan Garabík
f1e635ee6b new version 2017-01-05 16:50:42 +01:00
Radovan Garabík
94a46c60f8 python3 2017-01-05 16:47:47 +01:00
Radovan Garabík
f5680f91c6 Merge pull request #45 from jlec/py3
Convert for py3 compatibility
2017-01-05 16:41:19 +01:00
Radovan Garabík
f73579b0ab Merge pull request #46 from jlec/bash
Use bash internal functionalities for grc detection
2016-12-29 18:16:10 +01:00
Radovan Garabík
56d54cef0f Merge pull request #47 from jlec/configure
More advanced regex for configure colouring
2016-12-29 18:12:42 +01:00
Radovan Garabík
f6bdf1faf1 Merge pull request #44 from jlec/gcc
Support more coloring around gcc
2016-12-29 18:07:23 +01:00
Radovan Garabík
ccbaa79800 Merge pull request #43 from jlec/ipv6
Support matching for IPv6 versions of tcp & udp
2016-12-29 18:04:28 +01:00
Justin Lecher
638a6f94e6
Convert for py3 compatibility
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-27 17:49:39 +00:00
Justin Lecher
6d7ab5f648
More advanced regex for configure colouring
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-27 17:32:48 +00:00
Justin Lecher
1d4f9e1ca5
Use bash internal functionalities for grc detection
which is an external tool, where as type is a bash internal funciton
and always available

Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-27 13:17:27 +00:00
Justin Lecher
38d8cd75fe
Support more coloring around gcc
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-27 12:27:29 +00:00
Justin Lecher
f377998feb
Support matching for IPv6 versions of tcp & udp
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-12-27 11:37:31 +00:00
Radovan Garabík
82ca58087c conffile can be a pipe 2016-12-14 14:53:36 +01:00
Radovan Garabík
79f8c178d0 Merge pull request #41 from alcik/devel
configuration for ant and maven
2016-12-03 14:06:38 +01:00
Radovan Garabík
214db3009e Merge branch 'derimagia-master' into devel 2016-12-03 14:01:51 +01:00
Radovan Garabík
9a60d8c349 resolve conflict 2016-12-03 14:01:24 +01:00
alcik
759e35a1dc repair comments 2016-11-29 01:45:49 +01:00
alcik
5e0bc0235c configuratoion for ant and maven
Configuration for Apache Ant and Apache Maven building systems
2016-11-25 13:10:44 +01:00
Dave Wikoff
18d69b24bf Update docker ps and docker-compose ps regex. 2016-11-20 17:13:28 -05:00
Radovan Garabík
0a658d90f1 add ioping 2016-10-26 13:09:10 +02:00
Radovan Garabík
60830a9d05 oping 2016-10-19 15:38:25 -05:00
Radovan Garabík
b2f480c25a Merge pull request #39 from sasq64/master
Added 'concat' option for appending matches to a file
2016-10-17 22:31:44 +02:00
Radovan Garabík
26758e85cd Merge pull request #38 from lbschenkel/leonardo
Support the XDG Base Directory Specification
2016-10-17 22:26:39 +02:00
Radovan Garabík
a1b3d3cc14 Merge pull request #34 from iamoverit/master
added config for SQL queries
2016-10-17 22:19:13 +02:00
Radovan Garabík
538c809a86 Merge pull request #32 from unixorn/add-brew-installation-instructions
Add homebrew install instructions & fix typo
2016-10-17 22:14:00 +02:00
Radovan Garabík
c1b3fafda4 Merge branch 'richarson-traceroute6' into devel 2016-10-17 22:05:29 +02:00
Radovan Garabík
c946465a56 resolving conflict 2016-10-17 22:05:15 +02:00
Radovan Garabík
8b5313fb3a unify colours for ip 2016-10-17 21:56:21 +02:00
Radovan Garabík
c29847ce21 Merge branch 'iax7-master' into devel 2016-10-17 21:53:40 +02:00
Radovan Garabík
af3730564c resolving conflict 2016-10-17 21:51:07 +02:00
Radovan Garabík
cc15ffed57 add ipv6 and hwaddr to 'ip' config 2016-10-17 21:13:35 +02:00
Radovan Garabík
35a4b5621e Merge pull request #28 from richi235/master
Add   conf.ip  for   "ip"   command
2016-10-17 21:05:47 +02:00
Radovan Garabík
c9b8d73419 Merge pull request #27 from derimagia/master
Docker-ps: Fixing some edge cases and generalizing
2016-10-17 21:02:20 +02:00
Radovan Garabík
c66f3b7363 some debugs 2016-10-17 20:47:57 +02:00
Dave Wikoff
9b81a22581 Fix docker ps for docker-compose 2016-10-08 02:28:02 -04:00
Dave Wikoff
0eb46ed912 Fix headers for docker-compose 2016-10-08 02:27:29 -04:00
Jonas Minnberg
fabdbcaf08 Added 'concat' option for appending matches to a file 2016-09-28 11:48:08 +02:00
Leonardo Brondani Schenkel
0928d0b936 Support the XDG Base Directory Specification 2016-09-24 16:15:36 +02:00
Radovan Garabík
9f5781460b comments 2016-08-28 20:51:20 +02:00
Radovan Garabík
448c5f064d pty option 2016-08-28 19:20:46 +02:00
Radovan Garabík
7a641145e6 test pty 2016-08-28 19:17:53 +02:00
Radovan Garabík
5345174719 testing pseudoterminal 2016-07-31 15:35:15 +02:00
Radovan Garabík
8edae13481 alternate ping 2016-07-31 15:34:52 +02:00
Radovan Garabík
6b15eede1b testing pseudoterminal 2016-07-31 15:34:41 +02:00
Radovan Garabík
021439191c Merge branch 'master' of github.com:garabik/grc 2016-07-20 19:56:11 +02:00
Radovan Garabík
29ccd7fa31 oping 2016-07-20 19:52:30 +02:00
Ilya Filisteev
0d85e08767 added config for SQL queries 2016-06-22 23:04:27 +03:00
Isaias Pina
b1262d7007 Add several new apps, update grc.fish 2016-06-18 18:18:18 -05:00
Joe Block
53e5f28ec4 Add homebrew install instructions & fix typo 2016-06-16 18:45:31 -07:00
Ricardo J. Barberis
5bce6188fd Relativize traceroute
Remove absolute path from traceroute command (on Slackware, traceroute is in /usr/bin)
2016-05-18 19:57:11 -03:00
Ricardo J. Barberis
d494aa2d72 Add ifconfig
Add ifconfig to the aliases file
2016-05-18 19:56:17 -03:00
Ricardo J. Barberis
7a4aa1e448 Add traceroute6
Add traceroute6 to the aliases list
2016-05-18 19:55:20 -03:00
Isaias Pina
9374a08e17 Fix grc.bash to add new commands 2016-05-14 01:12:42 -05:00
Isaias Pina
a7c42cf56f Add blkid du env free lsblk lspci commands 2016-05-14 00:33:44 -05:00
Isaias Pina
f29aeb671a Add ip command and iptables 2016-05-14 00:25:47 -05:00
Isaias Pina
c74e2e0ccb Fix docker colors, add search, network, version commands 2016-05-14 00:20:54 -05:00
Richard Sailer
4a4cefb981 Add conf.ip for "ip" command 2016-05-10 20:15:19 +02:00
Dave Wikoff
6f6ef83a90 Dockerimages - Headers 2016-04-01 03:46:08 -04:00
Dave Wikoff
5c32ef19df Fix Dockerimages 2016-04-01 03:42:31 -04:00
Dave Wikoff
bac03020d5 Docker-ps: Fixing some edge cases and generalizing 2016-03-28 00:58:32 -04:00
Radovan Garabík
71c6c70965 ignore configuration sections without regexp 2016-01-27 10:10:58 +01:00
Radovan Garabík
b1863ef01d Merge pull request #21 from exzz/systemd
add journalctl command
2016-01-15 17:41:13 +01:00
Nicolas Leclercq
13bbd954bb add journalctl command 2016-01-13 11:48:42 +01:00
Radovan Garabík
0ae0ce08a8 better reporting of invalid configuration files 2015-12-25 15:47:36 +01:00
Radovan Garabík
7a48f0d91e Merge pull request #18 from iax7/master
Add docker support: info, ps, images, docker-machine commands
2015-12-25 14:35:02 +01:00
Isaias Pina
5b42261cb6 Add docker support: info, ps, images, docker-machine 2015-11-13 00:14:27 -06:00
Radovan Garabík
829e900211 fix installation 2015-11-01 20:03:34 +01:00
Radovan Garabík
3d698cc15e fix prefix to /usr 2015-11-01 19:57:26 +01:00
Radovan Garabík
60f38e18ad add README.markdown 2015-11-01 19:54:13 +01:00
Radovan Garabík
a8bcb068fe fix install.sh for debian/rules 2015-11-01 19:51:55 +01:00
Radovan Garabík
295378bcbd fix install.sh for debian/rules 2015-11-01 19:49:39 +01:00
Radovan Garabík
e363371815 (not working) conf.pv added 2015-11-01 19:40:26 +01:00
Radovan Garabík
14b03882ac Merge pull request #17 from Mephistophiles/feature
Modifing conf.ifconfig. Added new features
2015-10-21 21:32:40 +02:00
Maxim Zhukov
7169fd287e * Add IPv6 prefix support.
* Add iface vlan support.
2015-10-19 16:13:18 +03:00
Radovan Garabík
27b06f588c .bashrc in documentation 2015-10-10 16:38:09 +02:00
Radovan Garabík
1595dfb6cf merge 2015-10-10 16:35:08 +02:00
Radovan Garabík
1b7ae97369 Merge pull request #15 from iax7/master
Fix df header being colored
2015-10-10 16:24:16 +02:00
Radovan Garabík
f00c737688 Merge pull request #10 from egonSchiele/patch-1
Converting README to markdown so it is more readable on github
2015-10-10 16:20:55 +02:00
Radovan Garabík
a3745ca7f8 Merge pull request #9 from delphinus35/update-install-sh
update install.sh
2015-10-10 16:14:18 +02:00
Radovan Garabík
b5028b2a01 Merge pull request #8 from delphinus35/use-env-python
use env python
2015-10-10 16:08:36 +02:00
Isaias Pina
757fd862f8 Fix df header being colored 2015-10-07 04:11:39 -05:00
delphinus
28aeefcc28 fix typo 2015-05-19 22:32:05 +09:00
Aditya Bhargava
b1005bb0f2 Converting README to markdown so it is more readable on github
Hi there,
Would you consider using this markdown version of the README? It is much easier to read on github, so easy to get started with this project.
2015-05-18 14:27:00 -07:00
delphinus
0b9c238684 update install.sh
* install man's
* install grc.bashrc to profile dir
* use $PREFIX to determine install prefix
2015-05-18 11:03:34 +09:00
delphinus
6e41d2ecbc use env python 2015-05-18 10:46:11 +09:00
122 changed files with 3490 additions and 719 deletions

49
CREDITS
View File

@ -1,11 +1,44 @@
Credits where credits are due:
These people helped me with ideas, support and other things:
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>
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

22
INSTALL
View File

@ -5,18 +5,18 @@ Radovan Garabík <garabik @ kassiopeia.juls.savba.sk>
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
===================================================================
Requirenments:
anything with python interpreter, with more or less work needed
Requirements:
Anything with a python interpreter, with more or less work needed
if it is not unix.
If you have debian system with all necessary packages installed, type
dpkg-buildpackage (or dpkg-buildpackage -rfakeroot) in the package's
directory, then type
If you have a 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 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/
@ -26,7 +26,11 @@ else:
4) read the README and manual pages
5) modify /etc/grc.conf if you feel like it
there is a small shell script called install.sh provided, which does
automatically do the above.
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

239
README
View File

@ -1,239 +0,0 @@
===================================================================
Generic Colouriser
Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
garabik @ kassiopeia.juls.savba.sk
===================================================================
For the impatient - try following commands:
grc netstat
grc ping hostname
grc tail /var/log/syslog
grc ps aux
---------------
Being overflooded with different logfile colo(u)?ri(s|z)ers, colortails,
gccolors, colormakes and similar programs for making text files or outputs
of different programs more readable by inserting ansi colour control codes
into them, I decided to write my very own colouriser, eventually providing
the functions of all those others.
Two programs are provided: grc and grcat. The main is grcat, which acts as
a filter, i.e. taking standard input, colourising it and writing to
standard output.
grcat takes as a parameter the name of configuration file.
Directories ~/.grc/, /usr/local/share/grc/, /usr/share/grc/ are searched
for the file (in this order). If the file is not found, it is assumed to be
an absolute path of a configuration file located elsewhere.
Configuration file consists of entries, one per regexp, entries are
separated with lines with first character non-alphanumeric (except #).
Lines beginning with # or empty lines are ignored.
Each entry consists of several lines.
Each line has form:
keyword=value
where keyword is one of: regexp, colours, command, skip, replace, count
Only regexp is mandatory, but it does not have much sense by itself
unless you specify at least a colour, skip, replace or command keyword as well.
regexp is the regular expression to match
colours is the list of colours, separated by commas (you can specify only
one colour), each colour per one regexp group specified in regexp.
if you use special colour name "previous", colour of the previous line
of text will be used (actually, if both the first and last character of
the previous line are of different colour than the default one,
colour of the first one will be used).
Another special colour name "unchanged" will leave the colour
unchanged, useful if you need some context for matching
regular expression and you want to leave the colour of context
unchanged.
Yet another special name is an arbitrary string enclosed in
straight quotes. This string will be inserted directly into
the output in front of the matching expression. The string will
be eval'ed, so you can use usual python escape sequences.
This is useful on a 256-colour enabled xterm, where e.g.
colours="\033[38;5;22m" will give you a dark green (inspired
by Rutger Ovidius). Caveat: the string cannot contain a comma. This
is due to my laziness :-)
command is command to be executed when regexp matches. Its output will
be mixed with normal stdout, use redirectors ( >/dev/null) if you want
to suppress it.
skip can be skip=yes, if that case the matched line is skipped
(discarded from the output), or skip=no, when it is not skipped.
Default (if you do not have skip keyword) is of course not skipped.
replace means the regular expression match will be replaced by the value
all the preceeding regular expressions will be evaluated against
the original text, but if they match and the replacement changes
the length of the text, the colouring will *stay at the same positions*,
which is probably not what you want - therefore put the `replace' rule
preferrably at the beginning of config file
all the following regular expressions will be evaluated against
the replaced text, not the original
replacement is done by re.sub(), therefore you can use anything
python supports - in particular, \1, \2 etc... to include text
from the original matching groups, e.g:
regexp=(\d\d):(\d\d):(\d\d)
replace=\1h\2m\3s
will change time format from 09:43:59 into 09h43m59s
count is one of words: once, more, stop, previous, block or unblock
once means that if the regexp is matched, its first occurrence is coloured
and the program will continue with other regexp's.
more means that if there are multiple matches of the regexp in one line,
all of them will be coloured.
stop means that the regexp will be coloured and program will move to the
next line (i.e. ignoring other regexp's)
previous means the count will be the same as for the previous line
block marks a start of a multiline block of text, coloured with
the same colour
unblock, obviously, marks the end of such a block
example:
# this is probably a pathname
regexp=/[\w/\.]+
colour=green
count=more
this will match /usr/bin, /usr/local/bin/, /etc/init.d/syslogd and similar
strings and paint it with green.
Another example:
regexp=^-{1,2}\s{0,1}$
colours=red
count=block
-
regexp=^\s{0,5}$
colours=default
count=unblock
this will turn all correctly formatted mail signatures red.
Regular expressions are evaluated from top to bottom, this allows nested
and overlapped expressions. (e.g. you colour everything inside parentheses
with one colour, and if a following expression matches the text inside
parentheses, it will be also coloured)
Typical usage:
grcat conf.log < /var/log/syslog
/usr/sbin/traceroute www.linux.org | grcat conf.traceroute
grcat conf.esperanto < Fundamento.txt | less -r
To facilitate the use, command grc acts as frontend for grcat, automatically
choosing the configuration files, so you can write:
grc netstat
grc ping hostname
grc tail /var/log/syslog
etc...
grc will execute command command with optional parameters piping its stdout
into grcat.
Configuration file for grcat is determined by /etc/grc.conf or
~/.grc/grc.conf file.
Format of /etc/grc.conf or ~/.grc/grc.conf: each entry consists of 2 lines,
between entries there can be any number of empty lines or lines beginning
with # (comments)
First line is regular expression, second line the name of configuration
file for grcat.
Configuration file after the first regular expression matching the rest of
line after grc will be passed to grcat as its configuration file
For example, if you have
# log file
\b\w+\b.*log\b
conf.log
# traceroute command
(^|[/\w\.]+/)traceroute\s
conf.traceroute
in your /etc/grc.conf, then typing grc cat /var/log/syslog will use
conf.log to colourise the output,
grc /usr/sbin/traceroute www.linux.org will use conf.traceroute
Miscellaneous remarks:
You should get yourself familiar with regular expressions. Good reading is
at http://docs.python.org/dev/howto/regex.html
The program is not yet optimized for speed. There are places that can
give a big boost if optimized.
Regular expressions are handled by python, it means that they may be
slightly different from those you know from perl or grep. It's not my
fault in that case.
Colours are one of:
none, default, bold, underline, blink, reverse, concealed,
black, green, yellow, blue, magenta, cyan, white,
on_black, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white
beep
on_red means that the background (instead of foreground) is painted
with red etc...
Additional colours can be: dark, italic, rapidblink, strikethrough.
These are supported only on some terminals, so if you want to write
portable configuration files, avoid uing them (idea by James Rowe).
there can be more attributes per line (separated by space), e.g.
# this is probably a pathname
regexp=/[\w/\.]+
colours=bold blink green
count=more
will display pathnames in bold blinking green
-----------
Python 3 compatibility:
There is some preliminary python3 support, meaning that both grc and
grcat will run under both python2 and python3. However, all the regular
expressions are strings, and grcat works on string input (not bytes).
Therefore it will miserably fail if fed input with invalid UTF-8
characters.
-----------
Hint:
Following commands will display nice coloured log in virtual console 12:
If you have GNU tail:
tail --follow=name /var/log/syslog | grcat conf.log >/dev/tty12
or, if you have recent BSD tail:
tail -F /var/log/syslog | grcat conf.log >/dev/tty12
If you want to start using grc automatically with supported commands, add
source /etc/grc.bashrc
to your .bash_profile (assuming you copied grc.bashrc to /etc)

212
README.markdown Normal file
View File

@ -0,0 +1,212 @@
# Generic Colouriser
Radovan Garabík <http://kassiopeia.juls.savba.sk/~garabik/software/grc.html> (garabik @ kassiopeia.juls.savba.sk)
For the impatient - try following commands:
grc netstat
grc ping hostname
grc tail /var/log/syslog
grc ps aux
Being overflooded with different logfile colo(u)?ri(s|z)ers, colortails, gccolors, colormakes and similar programs for making text files or outputs of different programs more readable by inserting ansi colour control codes into them, I decided to write my very own colouriser, eventually providing the functions of all those others.
Two programs are provided: `grc` and `grcat`. The main is `grcat`, which acts as a filter, i.e. taking standard input, colourising it and writing to standard output.
## Configuration
`grcat` takes as a parameter the name of configuration file.
Directories `~/.grc/`, `/usr/local/share/grc/`, `/usr/share/grc/` are searched for the file (in this order). If the file is not found, it is assumed to be an absolute path of a configuration file located elsewhere.
Configuration file consists of entries, one per regexp, entries are separated with lines with first character non-alphanumeric (except #). Lines beginning with # or empty lines are ignored.
Each entry consists of several lines.
Each line has form: `keyword=value`
where keyword is one of: regexp, colours, command, concat, skip, replace, count
Only regexp is mandatory, but it does not have much sense by itself unless you specify at least a colour, skip, replace or command keyword as well.
**regexp** is the regular expression to match.
**colours** is the list of colours, separated by commas (you can specify only one colour), each colour per one regexp group specified in regexp.
if you use special colour name "previous", colour of the previous line of text will be used (actually, if both the first and last character of the previous line are of different colour than the default one, colour of the first one will be used).
Another special colour name "unchanged" will leave the colour unchanged, useful if you need some context for matching regular expression and you want to leave the colour of context unchanged.
Yet another special name is an arbitrary string enclosed in straight quotes. This string will be inserted directly into the output in front of the matching expression. The string will be eval'ed, so you can use usual python escape sequences.
This is useful on a 256-colour enabled xterm, where e.g. `colours="\033[38;5;22m"` will give you a dark green (inspired by Rutger Ovidius). Caveat: the string cannot contain a comma. This is due to my laziness :-)
**command** is command to be executed when regexp matches. Its output will be mixed with normal stdout, use redirectors (`>/dev/null`) if you want to suppress it.
**concat** is the name of a file which the current line will be appended to when the regexp matches.
**skip** can be `skip=yes`, if that case the matched line is skipped (discarded from the output), or `skip=no`, when it is not skipped. Default (if you do not have skip keyword) is of course not skipped.
**replace** means the regular expression match will be replaced by the value. All the preceeding regular expressions will be evaluated against the original text, but if they match and the replacement changes the length of the text, the colouring will *stay at the same positions*, which is probably not what you want - therefore put the `replace` rule preferrably at the beginning of config file.
all the following regular expressions will be evaluated against the replaced text, not the original.
replacement is done by `re.sub()`, therefore you can use anything python supports - in particular, `\1`, `\2` etc... to include text from the original matching groups, e.g:
regexp=(\d\d):(\d\d):(\d\d)
replace=\1h\2m\3s
will change time format from 09:43:59 into 09h43m59s
**count** is one of words: once, more, stop, previous, block or unblock
- **once** means that if the regexp is matched, its first occurrence is coloured and the program will continue with other regexp's.
- **more** means that if there are multiple matches of the regexp in one line, all of them will be coloured.
- **stop** means that the regexp will be coloured and program will move to the next line (i.e. ignoring other regexp's)
- **previous** means the count will be the same as for the previous line
- **block** marks a start of a multiline block of text, coloured with the same colour
- **unblock**, obviously, marks the end of such a block
example:
# this is probably a pathname
regexp=/[\w/\.]+
colour=green
count=more
this will match `/usr/bin`, `/usr/local/bin/`, `/etc/init.d/syslogd` and similar strings and paint it with green.
Another example:
regexp=^-{1,2}\s{0,1}$
colours=red
count=block
-
regexp=^\s{0,5}$
colours=default
count=unblock
this will turn all correctly formatted mail signatures red.
Regular expressions are evaluated from top to bottom, this allows nested and overlapped expressions. (e.g. you colour everything inside parentheses with one colour, and if a following expression matches the text inside parentheses, it will be also coloured).
# Typical usage:
grcat conf.log < /var/log/syslog
/usr/sbin/traceroute www.linux.org | grcat conf.traceroute
grcat conf.esperanto < Fundamento.txt | less -r
To facilitate the use, command `grc` acts as frontend for `grcat`, automatically choosing the configuration files, so you can write:
grc netstat
grc ping hostname
grc tail /var/log/syslog
etc...
`grc` will execute command command with optional parameters piping its stdout into `grcat`.
Configuration file for `grcat` is determined by `/etc/grc.conf` or `~/.grc/grc.conf` file.
Format of `/etc/grc.conf` or `~/.grc/grc.conf:` each entry consists of 2 lines, between entries there can be any number of empty lines or lines beginning with # (comments).
First line is regular expression, second line the name of configuration file for `grcat`.
Configuration file after the first regular expression matching the rest of line after `grc` will be passed to grcat as its configuration file
For example, if you have
# log file
\b\w+\b.*log\b
conf.log
# traceroute command
(^|[/\w\.]+/)traceroute\s
conf.traceroute
in your `/etc/grc.conf`, then typing `grc cat /var/log/syslog` will use `conf.log` to colourise the output, `grc /usr/sbin/traceroute www.linux.org` will use `conf.traceroute`.
## Miscellaneous remarks:
You should get yourself familiar with regular expressions. Good reading is
at <http://docs.python.org/dev/howto/regex.html>
The program is not yet optimized for speed. There are places that can
give a big boost if optimized.
Regular expressions are handled by python, it means that they may be
slightly different from those you know from perl or grep. It's not my
fault in that case.
Colours are one of:
none, default, bold, underline, blink, reverse, concealed,
black, green, yellow, blue, magenta, cyan, white,
on_black, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white
beep
`on_red` means that the background (instead of foreground) is painted
with red etc...
Additional colours can be: `dark, italic, rapidblink, strikethrough`.
These are supported only on some terminals, so if you want to write
portable configuration files, avoid uing them (idea by James Rowe).
there can be more attributes per line (separated by space), e.g.
# this is probably a pathname
regexp=/[\w/\.]+
colours=bold blink green
count=more
will display pathnames in bold blinking green
## Python 2 & 3 compatibility
both grc and grcat are targetted towards python3 now; there is an attempt at python2 compatibility, meaning that both grc and grcat will run under both python2 and python3. However, all the regular expressions are strings, and grcat works on string input (not bytes).
## Hints
Following commands will display nice coloured log in virtual console 12:
If you have GNU tail:
tail --follow=name /var/log/syslog | grcat conf.log >/dev/tty12
or, if you have recent BSD tail:
tail -F /var/log/syslog | grcat conf.log >/dev/tty12
## Automatic aliases
You can start using grc automatically with supported commands. The following assumes that `grc.<sh|zsh|fish>` is in `/etc`. The location may differ (i. e. `/usr/local/etc` when installed with [homebrew](https://formulae.brew.sh/formula/grc)); or the `grc.sh` can be placed into `/etc/profile.d/` (this is in fact the default). Be aware this is somewhat invasive and better test it before deploying.
### Bash
To set aliases for supported commands, append to your `~/.bashrc`:
GRC_ALIASES=true
[[ -s "/etc/profile.d/grc.sh" ]] && source /etc/grc.sh
If the file `/etc/default/grc` exists, it is sourced first, therefore you can place a line saying `GRC_ALIASES=true` there.
### ZSH
Or for zsh users, append to `~/.zshrc`:
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
### Fish
Add to `~/.config/fish/config.fish` or in a new file in `~/.config/fish/conf.d/`:
source /usr/local/etc/grc.fish
## Dynamic aliases
By running the follow code, it will check to see what programs are already installed on your OS (based on your `$PATH`), and echo out the result. This could then be added to your shell resource file as a one off. Alternatively, by removing the `echo` in the code, it could be placed into your shell resource file directly, and it will create the necessarily aliases each time:
for cmd in g++ gas head make ld ping6 tail traceroute6 $( ls /usr/share/grc/ ); do
cmd="${cmd##*conf.}"
type "${cmd}" >/dev/null 2>&1 && echo alias "${cmd}"="$( which grc ) --colour=auto ${cmd}"
done

25
_grc Normal file
View File

@ -0,0 +1,25 @@
#compdef grc
setopt localoptions extended_glob
local environ e cmd
local -a args
local -a _comp_priv_prefix
zstyle -a ":completion:${curcontext}:" environ environ
for e in "${environ[@]}"
do local -x "$e"
done
args=(
'(-e --stderr)'{-e,--stderr}'[redirect stderr; do not automatically redirect stdout]'
'(-s --stdout)'{-s,--stdout}'[redirect stdout; even with -e/--stderr]'
'(-c <name>--config=<name>)'{-c+,--config=-}'[use <name> as configuration file for grcat]:file:_files'
'--colour=-[colourize output]:colour:(on off auto)'
'(-h --help)'{-h,--help}'[display help message and exit]'
'--pty[run command in pseudotermnial (experimental)]'
'*::arguments:{ _normal }'
)
_arguments -s $args

46
colourfiles/conf.ant Normal file
View File

@ -0,0 +1,46 @@
# ant grc colorizer configuration
# BUILD FAILED
regexp=BUILD FAILED
colours=bold red
count=more
==============
# BUILD SUCCESSFUL
regexp=^BUILD SUCCESSFUL
colours=bold green
count=more
==============
# Total time
regexp=^(Total time: )([\d]+.*)$
colours=yellow,bold magenta
count=more
===============
# some error
regexp=[\d]+ error[s]?
colours=red
count=more
==============
# some warning
regexp=[\d]+ warning[s]?
colours=yellow
count=more
===============
# some error
regexp=[Ee]rror:
colours=red
count=more
==============
# some warning
regexp=[Ww]arning:
colours=yellow
count=more
==============
# project name
regexp=^[^:\s]+:$
colours=green
count=more
==============
# products
regexp=[^/]+\.[ewrj]ar$
colours=blue
count=more

31
colourfiles/conf.blkid Normal file
View File

@ -0,0 +1,31 @@
# Blk
regexp=^(/dev/)(.+):\s
colours=default,green,bright_green
======
# Blk mapper
regexp=^/dev/(mapper/)(.+):\s
colours=unchanged,underline green,bright_green
======
# UUID
regexp=\sUUID="([^"]+)
colours=bold yellow,blue
======
#UUID_SUB
regexp=\sUUID_SUB="([^"]+)
colours=green,bright_green
======
# TYPE
regexp=TYPE="([^"]+)
colours=bold cyan,cyan
======
# LABEL
regexp=\sLABEL="([^"]+)
colours=bold bright_cyan,bright_cyan
======
# PARTLABEL
regexp=\sPARTLABEL="([^"]+)
colours=bold green,red
# PARTUUID
regexp=PARTUUID="([^"]+)
colours=green,magenta

11
colourfiles/conf.common Normal file
View File

@ -0,0 +1,11 @@
# Green Words
regexp=[Ee]nabled?|[Oo]k|[Rr]unning|[Tt]rue
colour=green
-
# Red Words
regexp=[Dd]isabled?|[Ee]rrors?|[Ss]topped|[Ff]alse
colour=red
-
# Yellow Words
regexp=[Ww]arning
colour=yellow

View File

@ -0,0 +1,27 @@
# cache functions
regexp=\b(loading|updating|creating) cache\b
colours=yellow bold
.........
# checking
regexp=\bchecking\s*(for|if|whether|command|how|that)?(\s*to)?\b
colours=bold blue
.........
# result is complex
regexp=\.\.\. .*$
colours=bold yellow
.........
# check succeeded
regexp=\.\.\.( \(cached\))? yes$
colours=bold cyan
.........
# check did not succeed
regexp=\.\.\.( \(cached\))? no$
colours=bold red
.........
# ... should be normal
regexp=\.\.\.
colours=default
.........
# creating stuff
regexp=\bcreating\b
colours=green

72
colourfiles/conf.curl Normal file
View File

@ -0,0 +1,72 @@
# curl grc colorizer configuration
===
# Outgoing Headers
regexp=^(>) ([\w\-]+): (.*)
colours=default, bright_green, bright_blue, bright_cyan
===
# Incoming Headers
regexp=^(<) ([\w\-]+): (.*)
colours=default, bright_yellow, bright_blue, bright_cyan
===
# Incoming 200
regexp=(HTTP/[\d\.]+) 2\d{2} [\w\s]+
colours=bright_green on_blue, bright_white on_blue
===
# Incoming 300
regexp=(HTTP/[\d\.]+) 3\d{2}[\w\s]*
colours=bright_green on_blue, bright_white on_blue
===
# Incoming 400
regexp=(HTTP/[\d\.]+) 4\d{2} [\w\s]+
colours=bright_red on_blue, bright_white on_blue
===
# Incoming 500
regexp=(HTTP/[\d\.]+) 5\d{2} [\w\s]+
colours=bright_red on_blue, bright_white on_blue
===
# Server certificate
regexp=\* (Server certificate):
colours=magenta, bright_magenta
===
# Certificate Headers
regexp=\* ([a-z][\w\s\d]+): (.*)
colours=magenta, bright_blue, bright_cyan
===
# SSL certificate problem
regexp=SSL certificate problem:( .*)
colours=bright_red, bright_red
===
# SSL certificate verify result: self signed certificate (18), continuing anyway.
regexp=SSL certificate verify result:(.*)
colours=bright_magenta, bright_yellow
===
# SSL certificate verify ok.
regexp=SSL certificate verify (ok)
colours=bright_magenta, bright_green
===
# Verbose Logging
regexp=^([{}\*])\s
colours=default, bright_magenta
count=more
===
# Outgoing
regexp=^>\s
colours=bright_green
count=more
===
# Incoming
regexp=^<\s
colours=bright_yellow
count=more
===
# SSL connection
regexp= (SSL connection) using (.*) / (.*)
colours=magenta, bright_magenta, bright_magenta, bright_magenta
===
# Connected to...
regexp=(Connected) to (.*) \(([\d\.]+)\) port (\d+)
colours=magenta, bright_magenta, bright_magenta, bright_magenta, bright_magenta
===
# Outgoing METHOD
regexp=(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH) (/.*) HTTP/[\d\.]+
colours=bright_white on_blue, bright_white on_blue, bright_yellow on_blue

44
colourfiles/conf.df Normal file
View File

@ -0,0 +1,44 @@
# FS
#regexp=^.*?\s
regexp=^(?!Filesystem)(\/[-\w\d.]+)+\s
colours=blue,bold blue
======
# Size 'K'
regexp=\s\d*[.,]?\d(K|B)i?\s|\b\d{1,3}\b
colours=green
======
# Size 'M'
regexp=\s\d*[.,]?\dMi?\s|\b\d{4,6}\b
colours=yellow
======
# Size 'G'
regexp=\s\d*[.,]?\dGi?\s|\b\d{7,9}\b
colours=red
======
# Size 'T'
regexp=\s\d*[.,]?\dTi?\s|\b\d{10,12}\b
colours=bold red
======
# Mounted on
regexp=\/$|(\/[-\w\d. ]+)+$
colours=green,bold green
======
# Use 0-60%
regexp=\s[1-6]?[0-9]%\s
colours=green
======
# Use 70-89%
regexp=\s[78][0-9]%\s
colours=yellow
======
# Use 90-97%
regexp=\s9[0-7]%\s
colours=red
======
# Use 98-100%
regexp=\s9[89]%|100%\s
colours=bold red
======
# tmpfs lines
regexp=^tmpfs.*
colours=bright_black

23
colourfiles/conf.dig Normal file
View File

@ -0,0 +1,23 @@
#domain
regexp=[\S]+\.
colours=bright_magenta
-
#line
regexp=^(\S+).*?(\d+)\t(\w+)\t(\w+)\t
colours=unchanged,magenta,red,yellow,cyan
-
#ip4 address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=green
-
#ipv6
regexp=\t(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=dark green
-
#comments
regexp=^;;[\s\w]+
colours=yellow
-
#Title
regexp=; <<>> DiG.* <<>> (\S+)
colours=default,bold magenta

11
colourfiles/conf.dnf Normal file
View File

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

View File

@ -0,0 +1,23 @@
# IMAGE
regexp=^(?!NAME|error)(\S+)\s+(\S+)\s+(\S+)
colours=default,bold yellow,bold black,cyan
======
# Running
regexp=\sRunning\s
colours=bold green
======
# Stopped
regexp=\sStopped\s
colours=bold red
======
# Error
regexp=\sError\s
colours=red
======
# PORTS
regexp=((?:\d{1,3}\.){3}\d{1,3}):(\d+)
colours=default,blue,bold blue
======
# Error Line
regexp=^error\s(?:\w+\s)+([a-z\-_0-9]+):(.*)$
colours=red,yellow,bold red

View File

@ -0,0 +1,63 @@
# REPO, TAG, IMAGE ID
regexp=^([a-z]+\/?[^\s]+)\s+([^\s]+)\s+(\w+)
colours=default,bold white,bright_cyan,bright_black
=====
# latest
regexp=(?<=\s)latest(?=\s+)
colours=dark cyan
=====
# REPOSITORY (Image name)
regexp=^(?:(\S+)\/)*(\S+)\s
colours=default,yellow,bright_white
=====
# images without name
regexp=^<none>.*$
colours=bold red
=====
# images without tag
regexp=\s+(<none>)\s+
colours=unchanged,bold red
=====
# Size 'K'
regexp=(?<=\s)\d+[.,]?\d*\s?(KB?|B)
colours=green
======
# Size 'M', 2 digits
regexp=(?<=\s)\d{1,2}[.,]?\d*\s?MB?
colours=green
======
# Size 'M' 3+ digits
regexp=(?<=\s)\d{3,4}[.,]?\d*\s?MB?
colours=yellow
======
# Size 'G'
regexp=(?<=\s)\d+[.,]?\d*\s?GB?
colours=red
=====
# CREATED seconds/minutes
regexp=[\da-f]{12}\s+((?:About a|\d+) (?:seconds?|minutes?) ago)
colours=unchanged,on_green bold white
======
# CREATED About a minute ago
regexp=\s+(About a minute ago)\s\w+
colours=unchanged,on_green bold white
======
# CREATED hours
regexp=\s+(\d+\shours\s\w+)
colours=unchanged,bright_green
======
# CREATED days
regexp=\s+(\d+\sdays\s\w+)
colours=unchanged,green
======
# CREATED weeks
regexp=\s+(\d+\sweeks\s\w+)
colours=unchanged,yellow
======
# CREATED months
regexp=\s+(\d+\smonths\s\w+)
colours=unchanged,red
=====
# HEADERS
regexp=(?:\s|^)(REPOSITORY|TAG|IMAGE ID|CREATED|SIZE)(?:\s|$)
colours=default,underline

View File

@ -0,0 +1,19 @@
# Main Nodes
regexp=^(\S[^:]+):\s?(.*)?$
colours=default,cyan
======
# Sub Nodes
regexp=^\s([^:]+):\s?(.*)?$
colours=default,magenta
======
# Warning
regexp=WARNING:\s(.+)$
colours=bold yellow, yellow
======
# devicemapper
regexp=devicemapper$
colours=bright_red
-
# loop-lvm
regexp=: (/var/lib/docker/devicemapper/devicemapper/(?:meta)?data)
colours=default,bright_red

View File

@ -0,0 +1,23 @@
# HEADERS
regexp=(?:\s|^)(NETWORK ID|NAME|DRIVER|SCOPE)(?:\s|$)
colours=default,underline
-
# Line
regexp=^(?!NETWORK)(\S+)\s+(\S+)
colours=unchanged,bright_black,bright_blue
-
# Driver BRIDGE
regexp=^\S+\s+\S+\s+(bridge)
colours=unchanged,bright_cyan
-
# Driver HOST
regexp=^\S+\s+\S+\s+(host)
colours=unchanged,cyan
-
# Driver OVERLAY
regexp=^\S+\s+\S+\s+(overlay)
colours=unchanged,magenta
-
# Driver NULL
regexp=^\S+\s+\S+\s+(null)
colours=unchanged,on_red white

53
colourfiles/conf.dockerps Normal file
View File

@ -0,0 +1,53 @@
# HEADERS
regexp=(?:\s|^)(CONTAINER ID|IMAGE|COMMAND|CREATED|STATUS|PORTS|NAMES)(?:\s|$)
colours=default,underline
======
# IMAGE NAME (as docker image)
regexp=\s{2,}(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)(:\S+)?\s{2,}\"
colours=unchanged,yellow,bright_white,cyan
======
# IMAGE
regexp=^(?!CONTAINER)(\w+)\s+([^\s]+)\s+(".*")\s+(.*(?=(?:Up|Exited|Created|Restarting)))
colours=unchanged,bright_black,unchanged,bright_black,cyan
======
# Statuses - Created
regexp=\sCreated\s
colours=blue
======
# Statuses
# https://github.com/docker/docker/blob/e5a3f86e447dd659da3c2e759f3c088a0bfcfe3d/container/state.go#L40
# Up
regexp=(?:\s{2}|^)(?:Up|Restarting)(?:(?:\s[\w,\d]+)+)?
colours=bold green
======
# Health - healthy
regexp=\s\(healthy\)
colours=bold green
======
# Health - starting
regexp=\s\(health: starting\)
colours=bold yellow
======
# Health - unhealthy
regexp=\s\(unhealthy\)
colours=bold red
======
# Statuses - Exited
regexp=Exited\s.(\d+).+?(?=\s{2,})
colours=bold red,red
======
# Statuses - Restarting
regexp=Restarting\s.(\d+).+?(?=\s{2,})
colours=bold blue
======
# Ip Addresses
regexp=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(\:)?
colours=default,blue,default
======
# Ports
regexp=(\d{1,5})?(-)?(\d{1,5})?(->)?(\d{1,5})(-)?(\d{1,5})?(\/)(tcp|udp)
colours=default,bright_green,default,bright_green, default, bright_green,default,bright_green,default,cyan
======
# NAMES
regexp=(?:([a-z\-_0-9]+)\/)*([a-z\-_0-9]+)$
colours=default,yellow,on_blue white

View File

@ -0,0 +1,43 @@
# Header
regexp=Using default tag: (\w+)
colours=default,bold yellow
======
# Image
regexp=Pulling from ([^\s]+)
colours=default,bold green
======
# HASH
regexp=^\w{12}:
colours=default
======
# 1_Pulling fs layer
regexp=Pulling fs layer
colours=yellow
======
# 2_Waiting
regexp=Waiting
colours=bright_yellow
======
# 3_Verifying Checksum
regexp=Verifying Checksum
colours=bold yellow
======
# 4_Download complete
regexp=Download complete
colours=green
======
# 5_Pull Complete
regexp=Pull complete
colours=bold green
======
# Already exists
regexp=Already exists
colours=blue
======
# Status Updated
regexp=Image is up to date
colours=bold green
======
# Status Downloaded
regexp=Downloaded newer image
colours=bold blue

View File

@ -0,0 +1,27 @@
# NAMES
regexp=^(?:([a-z\-_0-9]+)\/)*(\S+)\s(?!DESCRIPTION)
colours=default,yellow,bold yellow
-
# Title
regexp=^NAME.*
colours=default
-
# Oficial
regexp=\[OK\](?!$)
colours=bold green
-
# Automated
regexp=\[OK\]$
colours=magenta
-
# 1 digit Star
regexp=\s{3,}(\d)\s{3,}
colours=red
-
# 2 digits Stars
regexp=\s{3,}(\d{2})\s{3,}
colours=yellow
-
# 3 digits Stars
regexp=\s{3,}(\d{3,})\s{3,}
colours=green

View File

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

39
colourfiles/conf.du Normal file
View File

@ -0,0 +1,39 @@
# Cannot read STDERR, not working
regexp=^du.*
colours=red
======
# Path
regexp=\s+[\.\/]+([\w\s\-\_\.]+)(\/.*)?$
colours=default,bold blue,blue
======
# Size 'K'
regexp=^\d{1,3}\s
colours=green
======
regexp=^ ?\d*[.,]?\dKi?\s
colours=green
======
# Size 'M'
regexp=^\d{4,6}\s
colours=yellow
======
regexp=^ ?\d*[.,]?\dMi?\s
colours=yellow
======
# Size 'G'
regexp=^\d{7,9}\s
colours=red
======
regexp=^ ?\d*[.,]?\dGi?\s
colours=red
======
# Size 'T'
regexp=^\d{10,12}\s
colours=bold red
======
regexp=^ ?\d*[.,]?\dTi?\s
colours=bold red
======
# Total
regexp=(.*)\s+(total)$
colours=bold yellow on_blue

4
colourfiles/conf.dummy Normal file
View File

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

3
colourfiles/conf.env Normal file
View File

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

35
colourfiles/conf.fdisk Normal file
View File

@ -0,0 +1,35 @@
# Error
regexp=fdisk: cannot open ([^:]+).*$
colours=red, bold red
-
# Disk
regexp=^(Disk) (?:\/([^\/: ]+))+
colours=yellow,on_yellow black,bold yellow
-
# Boot?
regexp=\*\s\s\s
colours=on_red bold white
-
# Partitions
regexp=^(?:\/([^\/: ]+))+
colours=green,bold green
-
# Type
regexp=type: (.*)$
colours=unchanged,bold cyan
-
# ID
regexp=identifier: (.*)$
colours=unchanged, cyan
-
# Size 'K'
regexp=\s\d*[.,]?\d*\s?Ki?B?
colours=green
-
# Size 'M'
regexp=\s\d*[.,]?\d*\s?Mi?B?
colours=yellow
-
# Size 'G'
regexp=\s\d+[.,]?\d*\s?Gi?B?
colours=red

27
colourfiles/conf.findmnt Normal file
View File

@ -0,0 +1,27 @@
# Devices
regexp=\s\/dev(?:\/([^\/ ]+))+
colours=green, bold green
-
# Mount Path
regexp=(?<=─|-)(?:\/([^\/ ]+))+
colours=unchanged,bold yellow
-
# RW
regexp=(?:\s)rw
colours=bold red
-
# RO
regexp=(?:\s)ro
colours=bold green
-
# Like comment, leave at end always
regexp=^.*(?=cgroup|tmpfs).*$
colours=bright_black
-
# Common Types
regexp=\b(ext\d|xfs|btrfs|nfs)\b
colours=cyan
-
# MS Types
regexp=\b(fat|vfat|ntfs|msdos)\b
colours=on_cyan white

27
colourfiles/conf.free Normal file
View File

@ -0,0 +1,27 @@
# Size 'K'
regexp=\s\d*[.,]?\dKi?|\b\d{1,3}\b
colours=green
======
# Size 'M'
regexp=\s\d*[.,]?\dMi?|\b\d{4,6}\b
colours=yellow
======
# Size 'G'
regexp=\s\d*[.,]?\dGi?|\b\d{7,9}\b
colours=red
======
# Size 'T'
regexp=\s\d*[.,]?\dTi?|\b\d{10,12}\b
colours=bold red
======
# Mem
regexp=^Mem
colours=bold cyan
======
# Swap
regexp=^Swap
colours=bold magenta
======
# Zero
regexp=\s+0\w?(\s|$)
colours=green

View File

@ -1,9 +1,9 @@
#
regexp=\bgcc\b
colours=yellow
count=more
#
regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
colours=white bold
count=once
.........
#
#
regexp=^[^:\s]*?:\d+:
colours=bold magenta
.........
@ -11,10 +11,14 @@ regexp=^[^:\s]*?:
colours=cyan
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
@ -24,10 +28,10 @@ regexp=\-o\s[^\s]+
colours=yellow
.........
# warning and error won't work, unless you redirect also
# stderr to grcat
# stderr to grcat
#
# warning
regexp=warning:.*
regexp=[Ww]arning[:\b]
colours=white
.........
regexp=warning:
@ -35,7 +39,7 @@ colours=bold yellow
count=once
.........
# error
regexp=error:.*
regexp=[Ee]rror[:\b]
colours=bold white
.........
regexp=error:

31
colourfiles/conf.getfacl Normal file
View File

@ -0,0 +1,31 @@
# Header file
regexp=^\#\sfile:\s(\S+)
colours=cyan,bold
-
# Header owner
regexp=^\#\sowner:\s(\S+)
colours=cyan,bold green
-
# Header group
regexp=^\#\sgroup:\s(\S+)
colours=cyan,bold yellow
-
# user
regexp=(?:^|:)user:([^:]+)?:(\S+)
colours=green,on_green black,bright_green
-
# group
regexp=(?:^|:)group:([^:]+)?:(\S+)
colours=yellow,on_yellow black,bright_yellow
-
# other
regexp=(?:^|:)other:([^:]+)?:(\S+)
colours=red,on_red black,bright_red
-
# mask
regexp=(?:^|:)mask:([^:]+)?:(\S+)
colours=blue,on_blue black,bright_blue
-
# default:
regexp=^default
colours=on_blue bold white

View File

@ -0,0 +1,15 @@
# Name
regexp=^\S+
colours=default
-
# State
regexp=-->
colours=yellow
-
# State
regexp=\s(off)
colours=default,bright_red
-
# State
regexp=\s(on)
colours=default,bright_green

21
colourfiles/conf.go-test Normal file
View File

@ -0,0 +1,21 @@
# go-test grc colorizer configuration
regexp==== RUN .*
colour=bright_blue
-
regexp=--- PASS: .* (\(\d+\.\d+s\))
colour=green, yellow
-
regexp=^PASS$
colour=bold white on_green
-
regexp=^(ok|FAIL)\s+.*
colour=default, magenta
-
regexp=--- FAIL: .* (\(\d+\.\d+s\))
colour=red, yellow
-
regexp=^FAIL$
colour=bold white on_red
-
regexp=[^\s]+\.go(:\d+)?
colour=cyan

11
colourfiles/conf.id Normal file
View File

@ -0,0 +1,11 @@
# Groups
regexp=(\d+)\((\w+)\)
colours=unchanged,yellow,bold yellow
-
# User
regexp=uid.(\d+)\((\w+)\)
colours=unchanged,green,bold green
-
# SELinux
regexp=(\w+_u):(\w+_r):(\w+_t):([\w\-.:]+)
colours=unchanged,green,yellow,cyan,magenta

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

View File

@ -0,0 +1,23 @@
# Devices
regexp=^[\w\d-]+\s{2,}(?!%)
colours=bright_green
-
# Averages Title
regexp=\s+(%user)\s+(%nice)\s+(%system)\s+(%iowait)\s+(%steal)\s+(%idle)
colours=default,blue,cyan,magenta,bright_magenta,red,green
-
# Averages Numbers
regexp=\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)
colours=default,blue,cyan,magenta,bright_magenta,red,green
-
# Averages last line
regexp=^Average:.*$
colours=reverse
-
# High rates (4 digits)
regexp=\s\d{4}\.\d+
colours=red
-
# High rates (5+ digits)
regexp=\s\d{5,}\.\d+
colours=bold red

44
colourfiles/conf.ip Normal file
View File

@ -0,0 +1,44 @@
# IP4
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold yellow
-
# IP6
regexp=[0-9a-fA-F]{0,4}(\:\:?[0-9a-fA-F]{0,4})+?(\/\d{1,3})
colours=yellow
-
# MAC
regexp=(\d|[a-f]){2}(\:(\d|[a-f]){2}){5}
colours=magenta
-
# parenthesis
regexp=\(|\)
colours=yellow
-
# dev wlan0 etc
regexp=dev \w+
colours=yellow
-
# "default"
regexp=default
colours=on_blue
-
# ip range size
regexp=/\d{1,2}
colours=red
-
# "linkdown"
regexp=linkdown
colours=bold red
-
# "src"
regexp=src \S+
colours=on_magenta

59
colourfiles/conf.ipaddr Normal file
View File

@ -0,0 +1,59 @@
# IP4
regexp=inet\s([^\/]+)\/(\d+)
colours=default,bold yellow,bold magenta
=====
# broadcast
regexp=brd\s([^}\s]+)
colours=default,dark cyan
=====
# dynamic
regexp=\bdynamic\b
colours=dark green
=====
# IP6
regexp=inet6\s([^\/]+)\/(\d+)
colours=default,yellow,magenta
=====
# MAC
regexp=link\/ether\s(\S+)\s
colours=default,magenta
=====
# State UP
regexp=(\d+):\s(\S+):.+state (UP)
colours=default,bright_white,bold green,bold green
=====
# State DOWN
regexp=(\d+):\s(\S+):.+state (DOWN)
colours=default,bright_white,bold red,bold red
=====
# State UNKNOWN
regexp=(\d+):\s(\S+):.+state (UNKNOWN)
colours=default,bright_white,bold cyan,cyan
=====
# State DORMANT
regexp=(\d+):\s(\S+):.+state (DORMANT)
colours=default,bright_white,bold cyan,cyan
=====
# < >
regexp=\s<([^>]+)>
colours=default,cyan
=====
# NO-CARRIER
regexp=NO-CARRIER
colours=bold red
=====
# Master dev
regexp=\smaster\s(\S+)\s
colours=default,on_blue white
=====
# on
regexp=\son\s
colours=green
=====
# off
regexp=\soff\s
colours=dark red
=====
# link/none
regexp=link\/(none)
colours=unchanged,red

View File

@ -0,0 +1,19 @@
# STATUS - STALE
regexp=^(\S+)\s.*(STALE)$
colours=default,bright_red,bold red
-
# STATUS - FAILED
regexp=^(\S+)\s.*(FAILED)$
colours=default,bright_magenta,bold magenta
-
# Status - REACHABLE
regexp=^(\S+)\s.*(REACHABLE)$
colours=default,bright_green,green
-
# Status - DELAY
regexp=^(\S+)\s.*(DELAY)$
colours=default,bright_yellow,yellow
-
# DEV
regexp=dev\s(\S+)
colours=default,cyan

31
colourfiles/conf.iproute Normal file
View File

@ -0,0 +1,31 @@
# DEV
regexp=dev\s(\S+)
colours=default,cyan
=====
# Gateway
regexp=(via)\s(\S+)\s
colours=default,yellow,bold yellow
=====
# Network
regexp=^(default|[^ \/]+(\/(\d+))?)
colours=green,bright_green,default,green
=====
# Network DEFAULT
regexp=^default
colours=on_green bold white
=====
# Local
regexp=(src)\s(\S+)\s?
colours=default,magenta,bold magenta
=====
# proto
regexp=(proto)\s(\S+)\s
colours=default,default,dark yellow
=====
# metric
regexp=(metric)\s(\d+)\b
colours=default,default,bold white
=====
# linkdown
regexp=linkdown
colours=bold red

88
colourfiles/conf.iptables Normal file
View File

@ -0,0 +1,88 @@
# Chains Custom name
regexp=^Chain\s(\S+)\s\(.*$
colours=white, bold bright_blue
-
# Chains FILTER table
regexp=^Chain\s(INPUT|OUTPUT|FORWARD)\s
colours=unchanged, bold yellow
-
# Chains NAT|MANGLE table
regexp=^Chain\s(PREROUTING|POSTROUTING|INPUT|OUTPUT)\s
colours=unchanged, bold yellow
-
# 2row Title
regexp=(pkts|target|num).*
colours=bold black
-
# JUMP Destiny ----------------------------------------------------------------
regexp=ACCEPT
colours=bright_green
-
regexp=DROP
colours=bright_red
-
regexp=REJECT
colours=red
-
regexp=QUEUE
colours=on_red white
-
regexp=RETURN
colours=on_green white
-
regexp=MASQUERADE
colours=bright_magenta
-
regexp=(LOG|ULOG)
colours=bright_cyan
-
regexp=DNAT
colours=magenta
-
regexp=SNAT
colours=dark magenta
# ------------------------------------------------------------------------------
-
# tcp
regexp=\stcp\s
colours=bold cyan
-
# udp
regexp=\sudp\s
colours=bold magenta
-
# icmp
regexp=\sicmp\s
colours=cyan
-
# all
regexp=\sall\s
colours=red
-
# dpt
regexp=\sdpts?:([^\s]*)(\s|$)
colours=default,bold yellow
-
# Goto
regexp=\s(\[goto\])
colours=default,on_blue bold white
-
# masq ports
regexp=\smasq ports:\s(\d+)-?(\d+)?
colours=default,bold yellow,bold yellow
-
# ctstate
regexp=ctstate\s(\S+)
colours=default,blue
-
# IP
regexp=(!)?((?:\d{1,3}\.){3}(?:\d{1,3}))(?:\/|:)?(\d+)?
colours=default,red,bright_white,magenta
-
# anywhere
regexp=\s(anywhere|0.0.0.0/0)\s
colours=bright_black
-
# (Num references)
regexp=\((\d+) references\)
colours=default,bright_green

View File

@ -24,7 +24,7 @@ colours=bold green
=======
# everything in parentheses
regexp=\(.+?\)
colours=green
colours=green
count=more
=======
# channel name

74
colourfiles/conf.iwconfig Normal file
View File

@ -0,0 +1,74 @@
# no wireless extensions
regexp=\bno wireless extensions
colours=red
=======
# Frequency
regexp=[0-9\.]{1,10} GHz
colours=bold green
=======
# Type
regexp=802\.11([a-z]+)
colours=bold yellow
=======
# Speed
regexp=[0-9\.]+ Mb/s
colours=bold yellow
=======
# Tx-Power
regexp=\-?[0-9]+ dBm
colours=bold green
=======
# ipv4
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold green
=======
# ipv6
regexp=\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+
colours=bold green
=======
# hwaddr
regexp=(\d|[a-f]){2}(\:(\d|[a-f]){2}){5}
colours=yellow
=======
# size
regexp=\d+(\.\d+)?\s(T|G|M|K|)i?B
colours=yellow
=======
# interface
regexp=^([a-z0-9]{2,}\d*):?\s
colours=bold green
=======
#ip disc
regexp=(inet6?|netmask|broadcast)
colours=cyan
=======
#flags
regexp=(?<=[,<])[^,]+?(?=[,>])
colours=blue
=======
# mtu
regexp=(?i)mtu(\s|\:)\d+
colours=green
=======
# quality/level/sensitivity
regexp=(\d+/\d+)
colours=bold yellow
=======
#errors
regexp=errors(\s|\:)\d+
colours=red
=======
regexp=dropped(\s|\:)\d+
colours=white
=======
regexp=overruns(\s|\:)\d+
colours=green
=======
regexp=frame(\s|\:)\d+
colours=white
=======
regexp=carrier(\s|\:)\d+
colours=cyan
=======
regexp=collisions(\s|\:)\d+
colours=red

9
colourfiles/conf.jobs Normal file
View File

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

75
colourfiles/conf.kubectl Normal file
View File

@ -0,0 +1,75 @@
# Green Words
regexp=\b(Ready|Running|[Tt]rue|Active|Available|Approved|created)\b
colour=unchanged,green
-
# Master
regexp=\smaster\s
colour=on_green bold white
-
# Red Words
regexp=\b([Dd]isabled?|[Ee]rrors?|[Ss]topped|[Ff]alse|none|ErrImagePull|[a-zA-Z]+BackOff|OOMKilled|[Tt]erminated|[Ff]aile?d?)\b
colour=unchanged,red
-
# Yellow Words
regexp=\b([Ww]arning|[Pp]ending|[Ww]aiting|ContainerCreating|Released|Bound|already exists)\b
colour=unchanged,yellow
-
# Completed Jobs
regexp=\b(Completed)\b
colour=unchanged,dark green
-
# Misc IP
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(/\d{1,2})?
colour=cyan,magenta
-
# Ports
regexp=(\d+)(:\d+)?/(TCP|UDP)
colour=unchanged,yellow,bold green,magenta
-
# Type/Name
regexp=^([^/ ]+)/(\S+)
colour=unchanged,yellow,bright_white
-
# No running Instances
regexp=\s(0/[1-9]+)\b
colour=unchanged,bold red
-
# Labels
regexp=([\w\d\-_\/.]+)=([\w\d\-_./]+)(,| |$)
colour=unchanged,blue,bright_yellow
-
# YAML First level (PSEUDO)
regexp=^([\w\d \-]+):
colours=unchanged,bright_blue
-
# YAML Nested
regexp=^[ \-]+(\S+):
colours=unchanged, blue
-
# YAML number
regexp=: (\d+)$
colours=unchanged, yellow
-
# Explicit String
regexp="(\S*)(?=")
colours=default,cyan
-
# Empy
regexp=(\<?[Nn]one\>?|null)
colours=magenta
-
# Events title
regexp=\s+(Type)\s+(Reason)\s+(Age)\s+(From)\s+(Message)
colours=cyan, cyan, cyan, cyan, cyan, magenta
-
# Title separator
regexp=\s+\-{3,}
colours=dark white
-
# HELP Highlight
regexp=( --[^= ]+| -[a-zA-Z]( |,))
colour=bright_green
-
# Higlight (Tested in kubectl config get-contexts)
regexp=^\*.+$
colour=bold white

47
colourfiles/conf.last Normal file
View File

@ -0,0 +1,47 @@
# DateTime
regexp=\s(\w{3})\s(\w{3})\s+(\d{1,2})\s(\d+:\d+)\s
colours=default,default,default,default,cyan
=====
# DateTime end
regexp=\s-\s(\d+:\d+)
colours=default,magenta
=====
# DateTime - down
regexp=\s-\s(down)
colours=default, red
=====
# DateTime - crash
regexp=\s-\s(crash)
colours=default, on_red white
=====
# still logged in
regexp=still logged in
colours=on_cyan bold white
=====
# still running
regexp=still running
colours=bright_green
=====
# Time
regexp=\((\d+\+)?(\d+):(\d+)\)
colours=default,bright_red,yellow,green
=====
# pts
regexp=\s(pts[\S]+)
colours=default,green
=====
# tty
regexp=\s(tty\d)
colours=default,blue
=====
# reboot
regexp=^reboot\s+system boot
colours=red
=====
# Third column IP
regexp=(?:\s|\()(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?:\s|\))
colours=default,bold red
=====
# Third column local
regexp=(?:\s|\()(\:0)(?:\s|\))
colours=default,dark cyan

View File

@ -1,5 +1,5 @@
# Intended for colouring LDIF output (from ldap tools)
# comments
# comments
regexp=^#.*
colours=green
count=stop

95
colourfiles/conf.log Normal file
View File

@ -0,0 +1,95 @@
# this configuration file is suitable for displaying kernel log files
# example of text substitution
#regexp=\bda?emon
#replace=angel
#colours=red
#======
# example of text substitution
#regexp=(\d\d):(\d\d):(\d\d)
#replace=\1h\2m\3s
#======
# display this line in yellow and stop further processing
regexp=.*last message repeated \d+ times$
colours=yellow
count=stop
======
# this is date and hostname
# 'Jun 3 22:44:55 neutronium '
# 'Jun 3 22:44:55 neutronium-02.my-domain.io '
regexp=^... (\d| )\d \d\d:\d\d:\d\d(\s[-.\w\d]+?\s)
colours=green, green, red
count=once
======
# everything in parentheses
regexp=\(.*?\)
colours=blue
count=more
======
# everything in `'
regexp=\`.+?\'
colours=bold yellow
count=more
======
# everything in "
regexp=\".*?\"
colours=blue
======
# this is probably a pathname
regexp=\s/[a-zA-Z_/\.\-\?\d\=\&]+
colours=blue
count=more
======
# everything in <>
regexp=\<.*?\>
colours=blue
count=more
======
# name of process and pid
regexp=([\w/\.\-]+)(\[\d+?\])
colours=bold blue, bold red
count=more
======
# IPv4 or IPv4:Port
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?
colours=bold yellow
count=more
======
# IPv6
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=bold yellow
=======
# Email address
regexp=[a-zA-z0-9\.\-\+]+\@[\w\-\.]+
colours=green
======
# HTTP verbs
regexp=GET|POST|PUT|DELETE|PATCH|HEAD
colours=green
======
# 2xx status
regexp=\s\b2\d{2}\b\s
colours=green
======
# 3xx status
regexp=\s\b3\d{2}\b\s
colours=yellow
======
# 4xx status
regexp=\s\b4\d{2}\b\s
colours=red
======
# 5xx status
regexp=\s\b5\d{2}\b\s
colours=red
======
# status deferred
regexp=status\=deferred|Connection refused
colours=red
======
# connect requires special attention
regexp=connect
colours=on_red
count=more

7
colourfiles/conf.lolcat Normal file
View File

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

72
colourfiles/conf.ls Normal file
View File

@ -0,0 +1,72 @@
# The following matches file sizes as produced by ls -l or ls -lh
# The output produced by ls -s is probably not specific
# enough to be reliably matched, especially considering ls -s(k|m|g|G).
#
# Example lines:
# -rw-r--r-- 1 user staff 344M Mar 22 22:51 MVI_8735.m4v
# -rw-r--r-- 1 user staff 360050327 Mar 22 22:51 MVI_8735.m4v
# -rw-r--r--. 1 user staff 1.0G Nov 23 16:13 testg
# -rw-r--r--. 1 user staff 1.0K Nov 23 16:13 testk
# -rw-r--r--. 1 user staff 1.0M Nov 23 16:13 testm
# -rw-r--r--. 1 user staff 1073741824 Nov 23 16:13 testg
# -rw-r--r--. 1 user staff 1024 Nov 23 16:13 testk
# -rw-r--r--. 1 user staff 1048576 Nov 23 16:13 testm
#
# The regexp uses lookahead to match a date following the size
# size: 1M <= size < 10M
regexp=\s+(\d{7}|\d(?:[,.]?\d+)?[KM])(?=\s[A-Z][a-z]{2}\s)
colours=green
=======
# size: 10M <= size < 100M
regexp=\s+(\d{8}|\d\d(?:[,.]?\d+)?M)(?=\s[A-Z][a-z]{2}\s)
colours=yellow
=======
# size: 100M <= size < 1G
regexp=\s+(\d{9}|\d{3}M)(?=\s[A-Z][a-z]{2}\s)
colours=red
=======
# size: 1G <= size
regexp=\s+(\d{10,}|[\d.,]+G)(?=\s[A-Z][a-z]{2}\s)
colours=bold red
=======
# device major minor numbers
regexp=\s(\d+),\s+(\d+)\s
colours=default,bright_yellow ,yellow
=======
# Date-Time => G1=Month G2=Day G3=Hour G4=Minutes G5=Year
regexp=([A-Z][a-z]{2})\s([ 1-3]\d)\s(?:([0-2]?\d):([0-5]\d)(?=[\s,]|$)|\s*(\d{4}))
colours=unchanged,cyan,cyan,cyan,cyan,bold magenta
=======
# root
regexp=\s(root|wheel)(?=\s|$)
colours=unchanged,bold white on_red
=======
# SELinux
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
colours=default,green,yellow,cyan,magenta
-
# -rwxrwxrwx ============================
# File Type
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bold white
-
# owner rwx
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
-
# group rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
-
# other rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
-
# sStT all
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
colours=unchanged,bold green,bold yellow, bold red
-
# ACL
regexp=^\S{10}(\+)
colours=unchanged,on_cyan bold white

23
colourfiles/conf.lsattr Normal file
View File

@ -0,0 +1,23 @@
# Normal
regexp=[aAcCdDeijsStTu]
colours=cyan
-
# User Namespace
regexp=[iadA]
colours=bright_green
-
# Read Only
regexp=[EhINXZ]
colours=bold red
-
# Separators
regexp=[\-]
colours=dark
-
# Error
regexp=(lsattr:) \w.*
colours=default, bold red
-
# Filename
regexp=(\/[-\w\d. ]+)+$
colours=yellow,bold

59
colourfiles/conf.lsblk Normal file
View File

@ -0,0 +1,59 @@
# Main HD
regexp=^[a-z]+\d?\s
colours=bold white
======
# Partition
regexp=([├└─│]+|[\|\`\-]+)(\S+)
colours=bright_green
======
# Partition - LVM
regexp=\s+([├└─│]+|[\|\`\-]+)(\S+)
colours=default,default,bright_cyan
======
# Type crypt
regexp=(?<=\s)crypt\b
colours=on_magenta white
======
# Type disk
regexp=(?<=\s)disk\b
colours=magenta
======
# Type lvm
regexp=(?<=\s)lvm\b
colours=bold cyan
======
# Type part
regexp=(?<=\s)part\b
colours=cyan
======
# Type loop
regexp=(?<=\s)loop\b
colours=bright_red
======
# Size 'K'
regexp=\s\d*[.,]?\dKi?\s
colours=green
======
# Size 'M'
regexp=\s\d*[.,]?\dMi?\s
colours=yellow
======
# Size 'G'
regexp=\s\d*[.,]?\dGi?\s
colours=red
======
# Size 'T'
regexp=\s\d*[.,]?\dTi?\s
colours=bold red
======
# Mount Path
regexp=(?<=\s)(\/[^\/ ]*)+$
colours=yellow,bold yellow
======
# Mount [SWAP]
regexp=\s\[(SWAP)\]
colours=default,bright_magenta
======
# UUID
regexp=(?<=\s)\b([0-9a-fA-F-]{4,}|[\w-]{38})\b
colours=default,dark cyan

3
colourfiles/conf.lsmod Normal file
View File

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

15
colourfiles/conf.lsof Normal file
View File

@ -0,0 +1,15 @@
# device major minor numbers
regexp=\s(\d+),(\d+)\s
colours=unchanged,bright_yellow ,yellow
-
# root
regexp=\broot\b
colours=bold white on_red
-
# PID
regexp=^(\S+)\s+(\d+)\s
colours=unchanged,bold cyan,cyan
-
# PATH
regexp=\s\/.*\/(\S+)($| \(.*\))
colours=green,bright_green,red

36
colourfiles/conf.lspci Normal file
View File

@ -0,0 +1,36 @@
# Address
regexp=^(..):(..).(.)
colours=default,bright_green,bright_yellow,red
-
# Ethernet
regexp=(Ethernet|Network) controller:
colours=cyan
-
# Wireless
regexp=Wireless
colours=bright_cyan
-
# SATA
regexp=SATA controller:
colours=green
-
# Audio
regexp=Audio device:
colours=blue
-
# Video
regexp=VGA compatible controller:
colours=magenta
-
# Bridges
regexp=(PCI|ISA|Host) bridge:
colours=red
-
# any unspecified controller
regexp=([A-Z].+?) controller:
colours=blue
-
# For lspci -k
regexp=Kernel (?:modules|driver in use): (.+)
colours=default,bright_red
-

25
colourfiles/conf.mount Normal file
View File

@ -0,0 +1,25 @@
# Intended for colouring 'mount' output
# written by Emanuele Aina
regexp=^(.*) on (.*) type (.*) \((.*)\)
colours=default,green,yellow,blue,magenta
-
# Devices
regexp=^(\/[^\/ ]+)+
colours=bold green, on_green black
-
# Mount Path
regexp=(?<=on )(\/[^\/ ]+)+
colours=unchanged,underline yellow
-
# RW
regexp=(?<=\()rw
colours=bold red
-
# RO
regexp=(?<=\()ro
colours=bold green
-
# Like comment, leave at end always
regexp=^(cgroup|tmpfs).*
colours=bright_black

15
colourfiles/conf.mtr Normal file
View File

@ -0,0 +1,15 @@
#ip address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=green
=======
# 0 Full Line | 1 Loss | 2 Snt | 3 Last | 4 Avg | 5 Best | 6 Worst | 7 stDev
regexp=(\d+\.\d%)\s+(\d+)\s+(\d+\.\d)\s+(\d+\.\d)\s+(\d+\.\d)\s+(\d+\.\d)\s+(\d+\.\d)$
colours=unchanged,yellow,unchanged,unchanged,blue,green,red,unchanged
=======
# unknow host
regexp=\?\?\?
colours=red
=======
# Packets/Pings
regexp=(Packets|Pings)
colours=bold green

92
colourfiles/conf.mvn Normal file
View File

@ -0,0 +1,92 @@
# mvn grc colorizer configuration
# [INFO]
regexp=^\[INFO\]
colours=bold
count=more
==============
# [WARNING]
regexp=^\[WARNING\]
colours=bold yellow
count=more
==============
# [ERROR]
regexp=^\[ERROR\]
colours=bold red
count=more
==============
# BUILD FAILURE
regexp=BUILD FAILURE
colours=bold red
count=more
==============
# [debug]
regexp=^\[debug\]
colours=magenta
count=more
==============
# lines [INFO] ----
regexp=\s[-]{6,}
colours=red
count=more
==============
# lines ^----
regexp=^[-]{6,}
colours=yellow
count=more
==============
# lines T E S T S
regexp=^ T E S T S
colours=yellow
count=more
==============
# lines ^Tests run:
regexp=^Tests run: ([\d]+)
colours=yellow,green
count=more
==============
# lines ^Tests run: Failures/Errors/Skipped
regexp=(Failures|Errors|Skipped):\s([\d]+)
colours=none,yellow,bold red
count=more
==============
# lines ^Tests run: Failures/Errors/Skipped
regexp=(Failures|Errors|Skipped):\s(0)\D?
colours=none,yellow,green
count=more
==============
# summary
regexp=\s(Total time: )(.*)$
colours=none,none,bold yellow
count=more
==============
# summary
regexp=\s(Finished at: )(.*)$
colours=none,none,bold yellow
count=more
==============
# BUILD SUCCESSFUL
regexp=\s(BUILD SUCCESSFUL)
colours=none,green bold
count=more
==============
# Building projectName
regexp=^(\[INFO\])( Building )(.*)$
colours=none,bold,none,white bold
count=more
==============
# reactor summary
regexp=([.]{3,} )(SUCCESS)( \[)([^\]]*)(])
colours=none,none,green,none,yellow,none
count=more
==============
# reactor summary
regexp=([.]{3,} )(FAILURE)( \[)([^\]]*)(])
colours=none,none,red,none,red,none
count=more
==============
# reactor summary
regexp=([.]{3,} )(SKIPPED)
colours=none,none,yellow bold,none
count=more

View File

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

35
colourfiles/conf.nmap Normal file
View File

@ -0,0 +1,35 @@
# Scan Title
regexp=Nmap scan report for (\S+)\s\(([^\)]+)\)
colours=default,bold green, bold magenta
-
# up
regexp=Host is (up)
colours=default, bold green
-
# Failed to resolve
regexp=Failed\sto\sresolve\s\"(\S+)\"
colours=red,bold red
-
# Closed ports
regexp=Not shown: (\d+)\s(closed|filtered)\sports
colours=default,bright_red,red
-
# Titles
regexp=^PORT.*$|^HOP.*
colours=bold
-
# Ports
regexp=^(\d+)\/(\w+)\s+(\w+)\s+(\S+)
colours=default,bold green,magenta,cyan,bold yellow
-
# Ports Details
regexp=^\|_?(.*)
colours=bold green,default
-
# Trace
regexp=^\d+\s+(\d+\.\d+\sms)[^0-9]*(\d+\.\d+\.\d+\.\d+)
colours=default,green,magenta
-
# Network Distance:
regexp=Network Distance:\s(\d+)
colours=default,bold green

8
colourfiles/conf.ntpdate Normal file
View File

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

60
colourfiles/conf.ping Normal file
View File

@ -0,0 +1,60 @@
# IP
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bright_blue
=======
# ipv6 number
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=magenta
=======
# icmp_seq=##
regexp=icmp_seq=(\d+)
colours=default,yellow
=======
# ttl=#
regexp=ttl=(\d+)
colours=default,magenta
=======
# name
regexp=(?:[fF]rom|PING)\s(\S+)\s
colours=default,blue
=======
# time
regexp=([0-9\.]+)\s?ms
colours=green,bold green
=======
# DUP
regexp=DUP\!
colours=red
=======
# OK
regexp= 0(\.0)?% packet loss
colours=green
=======
# Errors
regexp=(Destination Host Unreachable|100(\.0)?% packet loss)
colours=red
=======
# unknown host
regexp=.+unknown\shost\s(.+)
colours=red,bold red
-
# statistics header
regexp=--- (\S+) ping statistics ---
colours=bold, bold blue
-
# last line min/avg/max/mdev
regexp=rtt (min)/(avg)/(max)/(mdev)
colours=default,bright_yellow,bright_blue,bright_red,bright_magenta
-
# last line values
regexp=\=\s([0-9\.]+)\/([0-9\.]+)\/([0-9\.]+)\/([0-9\.]+)
colours=default,bright_yellow,bright_blue,bright_red,bright_magenta
-
# these are good for nping
regexp=SENT|RCVD
colours=red
-
# nping
regexp=unreachable
colours=red

View File

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

72
colourfiles/conf.ps Normal file
View File

@ -0,0 +1,72 @@
# /full/path
regexp=(\s|^)/[-\w\d.]+/[-\w\d./]+
colours=bold white
=======
# CAPS LINE
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
colours=underline
=======
# Capd Line
regexp=^([A-Z][-a-z0-9]+(\s+|$)){3,}$
colours=underline
=======
# VMSTAT
regexp=(\s|^)\d+([.,]\d+)?(?=[\s,]|$)
colours=bright_green
=======
# PID
regexp=^[a-zA-Z]+\w+\s+(\d+)|^\d\s+\w\s+(?:\w+\s+)?(\d+)|^\s*(\d+)
colours=unchanged,bold magenta,bold magenta,bold magenta
=======
# n.n.n
regexp=(\s|^)\d+\.\d+\.\d+(?=[\s,]|$)
colours=bold cyan
=======
# text:
regexp=^([-a-z0-9]+):\s
colours=unchanged,yellow
=======
# -options
regexp=(?<=\s)-[\w\d]+(?=\s|$)
colours=yellow
=======
# --long-option=
# legacy: regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=?)
regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=|\s)?(?!--)([^\s]*)
colours=cyan,white,underline cyan
=======
# [text]
regexp=\[[-\w\d:/]+\]
colours=cyan
=======
# root
regexp=root|wheel(?=\s|$)
colours=bold red
=======
# pts
regexp=(\s|^)pts/\d+(?=[^\w\d]|$)
colours=bright_yellow
=======
# tty
regexp=(\s|^)tty\d+(?=[^\w\d]|$)
colours=bright_cyan
=======
# Negative NICE (works only in -l)
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(-\d+)
colours=unchanged,on_red bold white
=======
# Neutral NICE (works only in -l)
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(\d+)
colours=unchanged,cyan
=======
# Positive NICE (works only in -l)
regexp=^\d\s+\w\s+\w+\s+\d+\s+\d+\s+\d\s+\d+\s+(1\d)
colours=unchanged,on_cyan bold white
=======
# Process ZOMBIE
regexp=^\d\s+([zZ])\s
colours=unchanged,on_red bold white
=======
# Process RS
regexp=^\d\s+([sSrR])\s
colours=unchanged,on_magenta black

8
colourfiles/conf.pv Normal file
View File

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

View File

@ -0,0 +1,19 @@
# Name
regexp=^\S+
colours=white
-
# State
regexp=\s\((off)
colours=default,bright_red
-
# State
regexp=\s\((on)
colours=default,bright_green
-
# State
regexp=\,\s+(off)\)
colours=default,dark red
-
# State
regexp=\,\s+(on)\)
colours=default,dark green

View File

@ -0,0 +1,11 @@
# SELinux
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
colours=default,green,yellow,cyan,magenta
-
# Path
regexp=\/\S+(\/\S+)\(
colours=green,bright_green
-
# Almost universal regex
regexp=\.\*|\[\^\/\]\*|\(\/\.\*\)\?|\?|\\\.
colours=blue

View File

@ -0,0 +1,23 @@
# r
regexp=\S+_r
colours=yellow
-
# u
regexp=\S+_u
colours=green
-
# t
regexp=\S+_t
colours=cyan
-
# s
regexp=s\d+
colours=magenta
-
# tcp for ports
regexp=tcp
colours=blue
-
# udp for ports
regexp=udp
colours=yellow

28
colourfiles/conf.sensors Normal file
View File

@ -0,0 +1,28 @@
# Sensor name
regexp=([a-z\-0-9]+)
colours=underline yellow
======
# Data names
regexp=(.+:)\s+(.+)
colours=unchanged, bright_cyan, default
======
# Extra info
regexp=.+\s+(\(.+\))
colours=unchanged, bright_black
======
# Adapter name
regexp=Adapter:(\s.*)
colours=unchanged, yellow
======
# Low temperature (below 60)
regexp=.+:\s+(\+[2345][0-9]\.[0-9]°C)
colours=unchanged, green
======
# High temperature (above 60)
regexp=.+:\s+(\+[67][0-9]\.[0-9]°C)
colours=unchanged, bright_yellow
======
# Very high temperature (above 80)
regexp=.+:\s+(\+[89][0-9]\.[0-9]°C)
colours=unchanged, bright_red
======

View File

@ -0,0 +1,23 @@
# Path
regexp=^(\/\S+)
colours=green
-
# Path Last part
regexp=\/(\w+)\s
colours=unchanged,bright_green
-
# IP
regexp=(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(\/\d+)?)
colours=default,yellow,magenta
-
# ALL
regexp=\*
colours=bold red
-
# Options
regexp=\(([\w,]+)\)
colours=default,cyan
-
# Server
regexp=for\s([^:]+):$
colours=default,bold yellow

93
colourfiles/conf.sockstat Normal file
View File

@ -0,0 +1,93 @@
=======
# CAPS LINE
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
colours=underline
=======
# root
regexp=^root(?=\s|$)
colours=bold red
=======
# non-root users
regexp=^(?:(?!root|USER))([^\s]+)
colours=bold yellow,unchanged
=======
# CMD
regexp=^[a-zA-Z]+\w+\s+(\w+)\s+\d+
colours=unchanged,bold cyan
=======
# FD
regexp=^[a-zA-Z]+\w+\s+\w+\s+\d+\s+(\d+)
colours=unchanged,yellow
=======
# PID
regexp=^[a-zA-Z]+\w+\s+[a-zA-Z]+\w+\s+(\d+)
colours=unchanged,bold magenta
=======
# PROTOCOLS
regexp=(tcp4|udp4|tcp6|udp6|stream|dgram)
colours=bold blue
=======
# hostname:service
regexp=([\w\.\-]+):([\w\-]+)\b
colours=yellow, bold green, bold yellow
=======
# hostname:port
regexp=([\w\.\-]+):(\d+)\b
colours=yellow, bold green, bold red
=======
# *:service
regexp=(\*):([\w\-]+)\b
colours=yellow, yellow, bold red
=======
# PATH
regexp=\s\/.*\/(\S+)($| \(.*\))
colours=green,bright_green,red
=======
# status
regexp=FIN_WAIT.*
colours=red
=======
# status
regexp=SYN.*?
colours=bold red
=======
# status
regexp=LISTEN(ING)?
colours=bold blue
=======
# status
regexp=TIME_WAIT
colours=bold red
=======
# status
regexp=CLOS(E(_WAIT)?|ING)
colours=red
skip=yes
=======
# status
regexp=LAST_ACK
colours=red
=======
# status
regexp=ESTAB.*?\b|CONNECTED
colours=bold yellow
=======
# status
regexp=FREE
colours=bold green
=======
# status
regexp=DISCONNECTING
colours=red
=======
# status
regexp=CONNECTING
colours=green
=======
# status
regexp=CONNECTING
colours=green
=======
# status
regexp=UNKNOWN
colours=blink bold red

32
colourfiles/conf.sql Normal file
View File

@ -0,0 +1,32 @@
# this configuration file is for displaying sql scripts very nice to use with sqlformat aka sqlparser
regexp=\w
colours="\033[38;5;140m"
count=more
======
regexp=\b(MIN|MAX|CASE|IF|ELSE|SUBDATE|NOW|ABORT|ABS|ABSOLUTE|ACCESS|ADA|ADD|ADMIN|AFTER|AGGREGATE|ALIAS|ALL|ALLOCATE|ANALYSE|ANALYZE|ANY|ARE|ASC|ASENSITIVE|ASSERTION|ASSIGNMENT|ASYMMETRIC|AT|ATOMIC|AUTHORIZATION|AVG|BACKWARD|BEFORE|BEGIN|BETWEEN|BITVAR|BIT_LENGTH|BOTH|BREADTH|CACHE|CALL|CALLED|CARDINALITY|CASCADE|CASCADED|CAST|CATALOG|CATALOG_NAME|CHAIN|CHARACTERISTICS|CHARACTER_LENGTH|CHARACTER_SET_CATALOG|CHARACTER_SET_NAME|CHARACTER_SET_SCHEMA|CHAR_LENGTH|CHECK|CHECKED|CHECKPOINT|CLASS|CLASS_ORIGIN|CLOB|CLOSE|CLUSTER|COALESCE|COBOL|COLLATE|COLLATION|COLLATION_CATALOG|COLLATION_NAME|COLLATION_SCHEMA|COLLECT|COLUMN|COLUMN_NAME|COMMAND_FUNCTION|COMMAND_FUNCTION_CODE|COMMENT|COMMIT|COMMITTED|COMPLETION|CONDITION_NUMBER|CONNECT|CONNECTION|CONNECTION_NAME|CONSTRAINT|CONSTRAINTS|CONSTRAINT_CATALOG|CONSTRAINT_NAME|CONSTRAINT_SCHEMA|CONSTRUCTOR|CONTAINS|CONTINUE|CONVERSION|CONVERT|COPY|CORRESPONTING|COUNT|CREATEDB|CREATEUSER|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_PATH|CURRENT_ROLE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|CURSOR|CURSOR_NAME|CYCLE|DATA|DATABASE|DATETIME_INTERVAL_CODE|DATETIME_INTERVAL_PRECISION|DAY|DEALLOCATE|DECLARE|DEFAULT|DEFAULTS|DEFERRABLE|DEFERRED|DEFINED|DEFINER|DELIMITER|DELIMITERS|DEREF|DESC|DESCRIBE|DESCRIPTOR|DESTROY|DESTRUCTOR|DETERMINISTIC|DIAGNOSTICS|DICTIONARY|DISCONNECT|DISPATCH|DO|DOMAIN|DYNAMIC|DYNAMIC_FUNCTION|DYNAMIC_FUNCTION_CODE|EACH|ENCODING|ENCRYPTED|END-EXEC|EQUALS|ESCAPE|EVERY|EXCEPT|EXCEPTION|EXCLUDING|EXCLUSIVE|EXEC|EXECUTE|EXISTING|EXISTS|EXTERNAL|EXTRACT|FALSE|FETCH|FINAL|FIRST|FORCE|FOREACH|FOREIGN|FORTRAN|FORWARD|FOUND|FREE|FREEZE|FULL|FUNCTION| 'G|GENERAL|GENERATED|GET|GLOBAL|GO|GOTO|GRANT|GRANTED|GROUPING|HANDLER|HAVING|HIERARCHY|HOLD|HOST|IDENTITY|IGNORE|ILIKE|IMMEDIATE|IMMUTABLE|IMPLEMENTATION|IMPLICIT|INCLUDING|INCREMENT|INDEX|INDITCATOR|INFIX|INHERITS|INITIALIZE|INITIALLY|INOUT|INPUT|INSENSITIVE|INSTANTIABLE|INSTEAD|INTERSECT|INTO|INVOKER|IS|ISNULL|ISOLATION|ITERATE|KEY|KEY_MEMBER|KEY_TYPE|LANCOMPILER|LANGUAGE|LARGE|LAST|LATERAL|LEADING|LENGTH|LESS|LEVEL|LIMIT|LISTEN|LOAD|LOCAL|LOCALTIME|LOCALTIMESTAMP|LOCATION|LOCATOR|LOCK|LOWER|MAP|MATCH|MAXVALUE|MESSAGE_LENGTH|MESSAGE_OCTET_LENGTH|MESSAGE_TEXT|METHOD|MINUTE|MINVALUE|MOD|MODE|MODIFIES|MODIFY|MONTH|MORE|MOVE|MUMPS|NAMES|NATIONAL|NATURAL|NCHAR|NCLOB|NEW|NEXT|NO|NOCREATEDB|NOCREATEUSER|NONE|NOT|NOTHING|NOTIFY|NOTNULL|NULL|NULLABLE|IFNULL|NULLIF|OBJECT|OCTET_LENGTH|OF|OFF|OFFSET|OIDS|OLD|ONLY|OPEN|OPERATION|OPERATOR|OPTION|OPTIONS|ORDINALITY|OUT|OUTPUT|OVERLAPS|OVERLAY|OVERRIDING|OWNER|PAD|PARAMETER|PARAMETERS|PARAMETER_MODE|PARAMATER_NAME|PARAMATER_ORDINAL_POSITION|PARAMETER_SPECIFIC_CATALOG|PARAMETER_SPECIFIC_NAME|PARAMATER_SPECIFIC_SCHEMA|PARTIAL|PASCAL|PENDANT|PLACING|PLI|POSITION|POSTFIX|PRECISION|PREFIX|PREORDER|PREPARE|PRESERVE|PRIMARY|PRIOR|PRIVILEGES|PROCEDURAL|PROCEDURE|PUBLIC|RAISE|READ|READS|RECHECK|RECURSIVE|REF|REFERENCES|REFERENCING|REINDEX|RELATIVE|RENAME|REPEATABLE|RESET|RESTART|RESTRICT|RESULT|RETURN|RETURNED_LENGTH|RETURNED_OCTET_LENGTH|RETURNED_SQLSTATE|RETURNS|REVOKE|RIGHT|ROLE|ROLLBACK|ROLLUP|ROUTINE|ROUTINE_CATALOG|ROUTINE_NAME|ROUTINE_SCHEMA|ROW|ROWS|ROW_COUNT|RULE|SAVE_POINT|SCALE|SCHEMA|SCHEMA_NAME|SCOPE|SCROLL|SEARCH|SECOND|SECURITY|SELF|SENSITIVE|SEQUENCE|SERIALIZABLE|SERVER_NAME|SESSION|SESSION_USER|SETOF|SETS|SHARE|SHOW|SIMILAR|SIMPLE|SIZE|SOME|SOURCE|SPACE|SPECIFIC|SPECIFICTYPE|SPECIFIC_NAME|SQL|SQLCODE|SQLERROR|SQLEXCEPTION|SQLSTATE|SQLWARNING|STABLE|START|STATE|STATEMENT|STATIC|STATISTICS|STDIN|STDOUT|STORAGE|STRICT|STRUCTURE|STYPE|SUBCLASS_ORIGIN|SUBLIST|SUBSTRING|SUM|SYMMETRIC|SYSID|SYSTEM|SYSTEM_USER|TABLE|TABLE_NAME|TEMP|TEMPLATE|TEMPORARY|TERMINATE|THAN|TIMESTAMP|TIMEZONE_HOUR|TIMEZONE_MINUTE|TO|TOAST|TRAILING|TRANSATION|TRANSACTIONS_COMMITTED|TRANSACTIONS_ROLLED_BACK|TRANSATION_ACTIVE|TRANSFORM|TRANSFORMS|TRANSLATE|TRANSLATION|TREAT|TRIGGER|TRIGGER_CATALOG|TRIGGER_NAME|TRIGGER_SCHEMA|TRIM|TRUE|TRUNCATE|TRUSTED|TYPE|UNCOMMITTED|UNDER|UNENCRYPTED|UNION|UNIQUE|UNKNOWN|UNLISTEN|UNNAMED|UNNEST|UNTIL|UPPER|USAGE|USE|USER|USER_DEFINED_TYPE_CATALOG|USER_DEFINED_TYPE_NAME|USER_DEFINED_TYPE_SCHEMA|USING|VACUUM|VALID|VALIDATOR|VALUES|VARIABLE|VERBOSE|VERSION|VIEW|VOLATILE|WHENEVER|WITH|WITHOUT|WORK|WRITE|YEAR|ZONE)\b
colours="\033[38;5;11m"
count=more
======
regexp=\b(ARRAY|BIGINT|BINARY|BIT|BLOB|BOOLEAN|CHAR|CHARACTER|DATE|DEC|DECIMAL|FLOAT|INT|INT8|INTEGER|LONG|NUMBER|NUMERIC|REAL|SERIAL|SERIAL8|SIGNED|SMALLINT|TEXT|TINYINT|UNSIGNED|VARCHAR|VARCHAR2|VARYING)\b
colours=bright_white
count=more
======
regexp=\b(HOUR|MINUTE|SECOND|INTERVAL|SELECT|INSERT|DELETE|UPDATE|REPLACE|MERGE|DROP|CREATE|ALTER|WHERE|FROM|INNER|JOIN|STRAIGHT_JOIN|AND|OR|LIKE|ON|IN|SET|BY|GROUP|ORDER|LEFT|OUTER|FULL|END|THEN|LOOP|AS|FOR|WHILE|WHEN|DISTINCT)\b
colours="\033[38;5;172m"
count=more
======
regexp=\,
colours="\033[38;5;172m"
count=more
======
regexp=\b(\d)\b
colours="\033[38;5;73m"
count=more
======
regexp=[=!><]
colours="\033[38;5;73m"
count=more
======
regexp=\/\*.*?\*\/
colours="\033[38;5;244m"
count=more

88
colourfiles/conf.ss Normal file
View File

@ -0,0 +1,88 @@
# status
regexp=\[.*\]
colours=green
=======
# Local Address:Port Peer Address:Port
regexp=\s((?:\d+\.){3}\d+|\*|\[?[\da-fA-F\.:]+\]?|[\w\d\-\_\.]+)(%[\w\d]+)?:(\S+)\s+\s((?:\d+\.){3}\d+|\*|\[?[\da-fA-F\.:]+\]?|[\w\d\-\_\.]+):(\S+)
colours=default,bright_green,blue,bright_red,cyan,magenta
=======
# process name
regexp=\("([^"]+)",
colours=blue
=======
# ipx hostname
regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
colours=green
=======
# protocols
regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
colours=magenta
=======
# protocols UDP
regexp=^udp
colours=yellow
=======
# protocols TCP
regexp=^tcp
colours=blue
=======
# status UNCONN
regexp=UNCONN
colours=dark red
=======
# status
regexp=FIN_WAIT.*
colours=red
=======
# status
regexp=SYN.*?
colours=bold red
=======
# status
regexp=LISTEN(ING)?
colours=bold blue
=======
# status
regexp=TIME_WAIT
colours=bold red
=======
# status
regexp=CLOS(E(_WAIT)?|ING)
colours=red
skip=yes
=======
# status
regexp=LAST_ACK
colours=red
=======
# status
regexp=ESTAB.*?\b|CONNECTED
colours=bold yellow
=======
# status
regexp=FREE
colours=bold green
=======
# status
regexp=DISCONNECTING
colours=red
=======
# status
regexp=CONNECTING
colours=green
=======
# status
regexp=UNKNOWN
colours=blink bold red
=======
# path
regexp=(\@)[\dabcdef]+
colours=green, bold green
=======
# timer
regexp=\d+sec
colours=yellow
=======
#Skip header
regexp=(Netid|State).*$
colours=default

40
colourfiles/conf.stat Normal file
View File

@ -0,0 +1,40 @@
# Fields
regexp=(?:IO\s)?\S+:\s
colours=cyan
-
# Filename
regexp=File: (\S+)
colours=unchanged, bold
-
# File Type
regexp=IO\sBlock:\s\d+\s+(.*)$
colours=unchanged, bold green
-
# SELinux from conf.ls
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
colours=default,green,yellow,cyan,magenta
-
# Permission Numbers
regexp=\((\d)(\d)(\d)(\d)\/
colours=default,bold white,bright_green,yellow,bright_red
-
# -rwxrwxrwx ============================ from conf.ls
# File Type
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bold white
-
# owner rwx
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
-
# group rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
-
# other rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
-
# sStT all
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
colours=unchanged,bold green,bold yellow, bold red

11
colourfiles/conf.sysctl Normal file
View File

@ -0,0 +1,11 @@
# Main & Last key
regexp=(\w+)\.(\S+) = ?(.+)?$
colours=default,green,cyan,yellow
-
# subcategories
regexp=\w+\.(\S+(?=\.))\.
colours=unchanged,magenta
-
# error
regexp=sysctl: permission denied on key '([^']+)'
colours=red,bold red

View File

@ -0,0 +1,41 @@
# Name
regexp=\.service\s
colours=bright_white
-
regexp=\.mount\s
colours=magenta
-
regexp=\.device\s
colours=blue
-
regexp=\.socket\s
colours=cyan
-
regexp=\.slice\s
colours=dark red
-
regexp=\.path\s
colours=green
-
regexp=\.target\s
colours=dark magenta
-
regexp=\.timer\s
colours=dark cyan
-
regexp=\.swap\s
colours=bright_magenta
-
regexp=\sloaded\s
colours=cyan
-
regexp=\sactive\s
colours=green
-
# exited
regexp=exited
colours=red
-
# running
regexp=running
colours=green

15
colourfiles/conf.tcpdump Normal file
View File

@ -0,0 +1,15 @@
# Title
regexp=on ([^,]+), link-type (\S+)
colours=unchanged, bold green, green
-
# Basic Line (-nS)
regexp=^(\d+):(\d+):(\d+\.\d+) (\S+) (\S+) (>) (\S+):
colours=unchanged,bold white,bright_white,dark white,cyan, bright_green, bold red, bright_blue
-
# IP
regexp=(?:\d{1,3}\.){3}(?:\d{1,3})
colours=bold
-
# Summary
regexp=^(\d+) packets
colours=unchanged,bold green

View File

@ -1,6 +1,6 @@
# hostname
regexp=\s\w+[\w\-\.]+\w+
colours=bold 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+\!

3
colourfiles/conf.tune2fs Normal file
View File

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

11
colourfiles/conf.ulimit Normal file
View File

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

16
colourfiles/conf.uptime Normal file
View File

@ -0,0 +1,16 @@
# Regular Up
regexp=\sup(?: (\d+) days?,)? +(\d+ min|\d+:\d+)(?=,)
colours=green,bold green, bold green
-
# users
regexp=\b(\d+) users?
colours=yellow,bold yellow
-
# load average
regexp=load average: (\d+[\.,]\d+),\s(\d+[\.,]\d+),\s(\d+[\.,]\d+)
colours=default,bright_cyan,cyan,dark cyan
-
# W Command section
# Title
regexp=^USER.*$
colours=bold

20
colourfiles/conf.vmstat Normal file
View File

@ -0,0 +1,20 @@
# Title
regexp=(procs)\s(-+memory-+)\s(-+swap-+)\s(-+io-+)\s(-+system-+)\s(-+cpu-+)
colours=default,bold,bold cyan,bold magenta,bold blue, bold green, bold red
-
# rows
regexp=^(\s*\w+\s+\w+)\s+(\w+\s+\w+\s+\w+\s+\w+)\s+(\w+\s+\w+)\s+(\w+\s+\w+)\s+(\w+\s+\w+)\s+(\w+\s+\w+\s+\w+\s+\w+\s+\w+)
colours=default,default,bright_cyan,bright_magenta,bright_blue,bright_green,bright_red
-
# ============================ DISK MODE =================================
# Title disk mode
regexp=^(disk-)\s(-+reads-+)\s(-+writes-+)\s(-+IO-+)
colours=default,bold,bold green,bold magenta,bold blue
-
# Title disk mode
regexp=(\s+)(total\s+merged\s+sectors\s+ms)\s+(total\s+merged\s+sectors\s+ms)\s+(cur\s+sec)
colours=default,bold,bold green,bold magenta,bold blue
-
# rows disk mode
regexp=^(\S+)\s+(\d+\s+\d+\s+\d+\s+\d+)\s+(\d+\s+\d+\s+\d+\s+\d+)\s+(\d+\s+\d+)
colours=default,bright_white,bright_green,bright_magenta,bright_blue

76
colourfiles/conf.whois Normal file
View File

@ -0,0 +1,76 @@
# field
regexp=^([\w\s])*:
colours=bold white
=======
# data
regexp=:\s[\w\s\W\S]*$
colour=blue
=======
# comments
regexp=^([;%])([\s\w\S\W])*$
colours=yellow
=======
# comments
regexp=(^(---)|(>>>))[\s\w\S\W]*$
colours=yellow
=======
# domain
regexp=(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})
colours=green
=======
# url
regexp=http[s]?://(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})(/[\w\d\S\s]*)*
colours=bold green
=======
# phone
regexp=\+([\d\.]*)
colours=bold yellow
=======
# email
regexp=([\d\w\S])+@(([\w\d]([\w\d-])+\.){1,})([\w\d-]{2,})
colours=bold blue
=======
# date
regexp=([\d]{4}[- ](([\d]{2})|([a-zA-Z]{3,}))[ -][\d]{2})|([\d]{2}[ -](([a-zA-Z]{3,})|([\d]{2}))[ -][\d]{4})
colours=bold red
=======
# time
regexp=[\d]{2}:[\d]{2}:[\d]{2}((\.[\d]*[Z]?)|(\+[\d]*))?
colours=red
=======
# NOTICE
regexp=NOTICE
colours=bold blue
=======
# TERM OF USE
regexp=TERMS OF USE
colours=bold blue
=======
# registrar
regexp=(Sponsoring )?[Rr]egistrar([\w\s\S])*:
colours=bold cyan
=======
# registrant
regexp=(Registry )?[Rr]egistrant([\w\s\S])*:
colours=bold blue
=======
# admin
regexp=(Registry )?[Aa]dmin([\w\s\S])*:
colours=bold magenta
=======
# tech
regexp=(Registry )?[Tt]ech([\w\s\S])*:
colours=bold yellow
=======
# billing
regexp=(Registry )?[Bb]illing([\w\s\S])*:
colours=bold green
=======
# NS
regexp=((nserver)|(Name Server)):
colours=bold green
=======
# domain status
regexp=(Domain Status)|(status)
colours=bold red

35
colourfiles/conf.yaml Normal file
View File

@ -0,0 +1,35 @@
# Document
regexp=---
colours=bold yellow
-
# First level
regexp=^(\S+):
colours=unchanged,blue
-
# Nested
regexp=^ +(\S+):
colours=unchanged,blue
-
# Set Var
regexp=&\S+
colours=bold green
-
# Use Var
regexp=\*\S+
colours=on_green black
-
# Array
regexp=-\s
colours=bold magenta
-
# << Inheritance
regexp=<<
colours=bold red
-
# Explicit String
regexp="(\S*)(?=")
colours=default,cyan
-
# Explicit Number
regexp= (\d*)$
colours=unchanged,yellow

View File

@ -1,14 +0,0 @@
regexp=^checking
colours=bold blue
.........
regexp=\.\.\. .*$
colours=bold yellow
.........
regexp=\.\.\. yes$
colours=bold cyan
.........
regexp=\.\.\. no$
colours=bold red
.........
regexp=\.\.\.[ ]
colours=default

39
conf.df
View File

@ -1,39 +0,0 @@
# FS
regexp=^.*?\s
colours=green
======
# Size 'K'
regexp=\s\d*[.,]?\dKi?\s
colours=green
======
# Size 'M'
regexp=\s\d*[.,]?\dMi?\s
colours=yellow
======
# Size 'G'
regexp=\s\d*[.,]?\dGi?\s
colours=red
======
# Size 'T'
regexp=\s\d*[.,]?\dTi?\s
colours=bold red
======
# Mounted on
regexp=/[-\w\d./]*
colours=bold green
======
# Use 0-60%
regexp=[1-6][0-9]?%|0%
colours=green
======
# Use 70-90%
regexp=[7-9][0-9]%
colours=yellow
======
# Use 90-95
regexp=[9][0-5]%
colours=red
======
# Use 95-100
regexp=[9][5-9]%|100%
colours=bold red

View File

@ -1,29 +0,0 @@
#ipv6
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=green
=======
#time
regexp=\s[0-9]{1,6}\s
colours=red
=======
#type
regexp=[A-Z]{1,4}
colours=cyan
=======
#in
regexp=(IN|CH)
colours=yellow
=======
#domain
regexp=[a-z0-9-]+\.
colours=magenta
=======
#ip address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=green
=======
#comments
regexp=^;;\s\w*\s*\w*
colours=yellow
#=======

View File

@ -1,53 +0,0 @@
# this configuration file is suitable for displaying kernel log files
# example of text substitution
#regexp=\bda?emon
#replace=angel
#colours=red
#======
# example of text substitution
#regexp=(\d\d):(\d\d):(\d\d)
#replace=\1h\2m\3s
#======
# display this line in yellow and stop further processing
regexp=.*last message repeated \d+ times$
colours=yellow
count=stop
======
# this is date
regexp=^... (\d| )\d \d\d:\d\d:\d\d(\s[\w\d]+?\s)
colours=green, green, red
count=once
======
# everything in parentheses
regexp=\(.+?\)
colours=green
count=more
======
# everything in `'
regexp=\`.+?\'
colours=bold yellow
count=more
======
# this is probably a pathname
regexp=/[\w/\.]+
colours=bold green
count=more
======
# name of process and pid
regexp=([\w/\.\-]+)(\[\d+?\])
colours=bold blue, bold red
count=more
======
# ip number
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold magenta
count=more
======
# connect requires special attention
regexp=connect
colours=on_red
count=more

31
conf.ls
View File

@ -1,31 +0,0 @@
# size
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
colours=yellow
=======
# time
regexp=(\s|^)\d+(:\d+)+(?=[\s,]|$)
colours=bold green
=======
# mounth
regexp=\s[a-z]{3}\s
colours=yellow
=======
#regexp=(?<=\d):(?=\d)
#colours=bold yellow
#=======
# root
regexp=root|wheel(?=\s|$)
colours=bold red
=======
# -rwxrwxrwx
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bold blue
=======
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bold green,unchanged,bold green,unchanged,bold green
=======
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
colours=unchanged,unchanged,bold yellow,unchanged,bold yellow,unchanged,bold yellow
=======
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
colours=unchanged,unchanged,bold red,unchanged,bold red,unchanged,bold red

View File

@ -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

View File

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

View File

@ -1,15 +0,0 @@
#ip address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=green
=======
# %
regexp=[0-9]{1,2}\.\d{1}%
colours=yellow
=======
# unknow host
regexp=\?\?\?
colours=red
=======
# Packets/Pings
regexp=(Packets|Pings)
colours=bold green

47
conf.ps
View File

@ -1,47 +0,0 @@
# /full/path
regexp=(\s|^)/[-\w\d.]+/[-\w\d./]+
colours=white
=======
# CAPS LINE
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
colours=underline
=======
# Capd Line
regexp=^([A-Z][-a-z0-9]+(\s+|$)){3,}$
colours=underline
=======
# VMSTAT
regexp=(\s|^)\d+([.,]\d+)?(?=[\s,]|$)
colours=bold green
=======
# n.n.n
regexp=(\s|^)\d+\.\d+\.\d+(?=[\s,]|$)
colours=bold cyan
=======
# text:
regexp=^([-a-z0-9]+):\s
colours=unchanged,yellow
=======
# -options
regexp=(?<=\s)-[\w\d]+(?=\s|$)
colours=yellow
=======
# --long-option=
regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=?)
colours=cyan,white
=======
# [text]
regexp=\[[-\w\d:/]+\]
colours=cyan
=======
# root
regexp=root|wheel(?=\s|$)
colours=red
=======
# pts
regexp=(\s|^)pts/\d+(?=[^\w\d]|$)
colours=bold yellow
=======
# tty
regexp=(\s|^)tty\d+(?=[^\w\d]|$)
colours=bold cyan

View File

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

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