forked from dotphiles/dotphiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
234 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# dotphiles : https://github.com/dotphiles/dotphiles | ||
# | ||
# Setup grc for `df` | ||
# | ||
# Authors: | ||
# Ben O'Hara <[email protected]> | ||
# | ||
|
||
# filesystem | ||
regexp=^((rootfs|tmpfs|udev)|(.*))\s+(\S+)\s+(\S+)\s+(\S+)\s+(\d+%)\s+(\S+)$ | ||
colours=default,default,cyan,green,magenta,default,default,blue,yellow | ||
- | ||
# full | ||
regexp=100%|9\d% | ||
colours=red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# dotphiles : https://github.com/dotphiles/dotphiles | ||
# | ||
# Setup grc for `dig` | ||
# | ||
# Authors: | ||
# Ben O'Hara <[email protected]> | ||
# | ||
|
||
# domain | ||
regexp=[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,6}?\. | ||
#([a-zA-Z]+\.)+(com|org|net|edu) | ||
colours=magenta | ||
======= | ||
# dns result | ||
regexp=(\d+\s){0,1}IN\s(AAAA|A|AFSDB|APL|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|HIP|IPSECKEY|KEY|KX|LOC|MX|NAPTR|NS|NSEC|NSEC3|NSEC3PARAM|PTR|RRSIG|RP|SIG|SOA|SPF|SRV|SSHFP|TA|TKEY|TSIG|TXT) | ||
colours=green | ||
======= | ||
# ip number | ||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | ||
colours=magenta | ||
======= | ||
# ipv6 number | ||
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+ | ||
colours=magenta | ||
======= | ||
# date/time | ||
regexp=(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s([\d]{2})\s([\d]{2}:[\d]{2}:[\d]{2})\s([\d]{4}) | ||
colours=blue | ||
======= | ||
# time | ||
regexp=\d+\smsec | ||
colours=green | ||
====== | ||
# (,) | ||
regexp=\(|\) | ||
colours=yellow | ||
======= | ||
# ;; | ||
regexp=^[;]+ | ||
colours=blue | ||
======= | ||
#: number | ||
regexp=:\s(\d+)(,){0,1} | ||
colours=green | ||
======= | ||
# Sections | ||
regexp=ANSWER\sSECTION:|Query\stime:|SERVER:|WHEN:|QUESTION\sSECTION|OPT\sPSEUDOSECTION|->>HEADER<<-|MSG\sSIZE|<<>>\sDiG\s[\d\.]+\s<<>>|QUERY|NOERROR|ANSWER|AUTHORITY|ADDITIONAL|rcvd | ||
colours=yellow | ||
======= | ||
# move stuff to background | ||
regexp=(flags:\s([a-z\s]+);)|opcode:|,\sstatus:|,\sid:|Got\sanswer:|global\soptions:.*$ | ||
colours=bold blue | ||
======= | ||
# #number | ||
regexp=#[0-9]+ | ||
colours=black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# | ||
# dotphiles : https://github.com/dotphiles/dotphiles | ||
# | ||
# Setup grc for `ifconfig` | ||
# | ||
# Authors: | ||
# Ben O'Hara <[email protected]> | ||
# | ||
|
||
# ip | ||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | ||
colours=green | ||
======= | ||
# ipv6 number | ||
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+ | ||
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+ | ||
colours=green | ||
======= | ||
# hwaddr | ||
regexp=(\d|[a-f])+(\:(\d|[a-f])+)+ | ||
colours=yellow | ||
======= | ||
# size | ||
regexp=\d+(\.\d+)?\s(T|G|M|K)iB | ||
colours=yellow | ||
======= | ||
# interface | ||
regexp=(([a-z]{3}\d)|(lo\d)|(en\d)|(bridge\d)|(utun\d)|(p2p\d)): | ||
colours=green | ||
======= | ||
#ip disc | ||
regexp=(inet\d?|netmask|broadcast) | ||
colours=cyan | ||
======= | ||
#flags | ||
regexp=(?<=[,<])[^,].*(?=[,>]) | ||
colours=blue | ||
======= | ||
# mtu | ||
regexp=mtu\s\d+ | ||
colours=green | ||
======= | ||
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# dotphiles : https://github.com/dotphiles/dotphiles | ||
# | ||
# Setup grc for `mount` | ||
# | ||
# Authors: | ||
# Ben O'Hara <[email protected]> | ||
# | ||
|
||
#/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=blue | ||
======= | ||
# /dev/disk | ||
regexp=^(/dev/)?disk[0-9]*(?=[^\w\d]|$) | ||
colours=blue | ||
======= | ||
# | ||
#mount options | ||
regexp=(?<=[,(])[^,]*(?=[,)]) | ||
colours=green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# dotphiles : https://github.com/dotphiles/dotphiles | ||
# | ||
# Setup grc for `mtr` | ||
# | ||
# Authors: | ||
# Ben O'Hara <[email protected]> | ||
# | ||
|
||
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,6 @@ | |
# Ben O'Hara <[email protected]> | ||
# | ||
|
||
# ip number | ||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | ||
colours=magenta | ||
======= | ||
# hostname:service | ||
regexp=([\w\.\-]+):([\w\-]+)\b | ||
colours=yellow, bold green, bold yellow | ||
|
@@ -23,13 +19,21 @@ colours=yellow, bold green, bold red | |
regexp=(\*):([\w\-]+)\b | ||
colours=yellow, blue, bold yellow | ||
======= | ||
# ip number | ||
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | ||
colours=magenta | ||
======= | ||
# ipv6 number | ||
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+ | ||
colours=magenta | ||
======= | ||
# ipx hostname | ||
regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+ | ||
colours=green | ||
======= | ||
# protocols | ||
regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM) | ||
colours=bold blue | ||
regexp=(^tcp46|^udp46|^icm46|^tcp4|^udp4|^icm4|^tcp6|^tcp|^udp6|^udp|^icm6|^icm|^unix|^IPX|STREAM|DGRAM) | ||
colours=blue | ||
======= | ||
# status | ||
regexp=FIN_WAIT.* | ||
|
@@ -41,7 +45,7 @@ colours=bold red | |
======= | ||
# status | ||
regexp=LISTEN(ING)? | ||
colours=bold blue | ||
colours=cyan | ||
======= | ||
# status | ||
regexp=TIME_WAIT | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
# hostname | ||
regexp=\s\w+[\w\-\.]+\w+ | ||
colours=bold yellow | ||
colours=blue | ||
count=once | ||
- | ||
# ip number | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters