Skip to content

Commit

Permalink
Updated grc configs and README
Browse files Browse the repository at this point in the history
  • Loading branch information
benohara committed Mar 10, 2014
1 parent 04e30dd commit 28957c4
Show file tree
Hide file tree
Showing 11 changed files with 234 additions and 19 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ These probably work...

### terminal

dotphiles uses the [solarized][5] color theme
by default, install the colour scheme for your terminal.
dotphiles uses the [base16][5] color theme
by default, install the colour schemes for your terminal.
See `deploy/terminal`

vim-powerline requires patched fonts for the 'fancy fonts' options, you can
vim-airline requires patched fonts for the 'fancy fonts' options, you can
find links to them to install [here][6] and configure your terminal to use
one, Menlo works great.
one, Meslo works great.

### ignores

Expand All @@ -107,7 +108,7 @@ commiting that you dont include any personal info you dont want in public!
- `deploy/linux` setup linux and install packages
- `packages/macports` add ports to be installed by `osx` (select one)
- `packages/homebrew` add brews to be installed by `osx` (select one)
- `packages/apt` add packagess to be installed by `linux` on apt based systems
- `packages/apt` add packages to be installed by `linux` on apt based systems

### dotsync

Expand Down Expand Up @@ -208,7 +209,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[2]: https://github.com/dotphiles/dotsync
[3]: https://github.com/dotphiles/dotzsh
[4]: https://github.com/dotphiles/dotvim
[5]: http://ethanschoonover.com/solarized
[6]: https://github.com/Lokaltog/vim-powerline/wiki/Patched-fonts
[5]: https://github.com/chriskempson/base16
[6]: https://github.com/Lokaltog/powerline-fonts
[7]: https://github.com/dotphiles/dotphiles/graphs/contributors

16 changes: 16 additions & 0 deletions grc/conf.df
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
8 changes: 4 additions & 4 deletions grc/conf.diff
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@

# new lines and filenames (unified diff)
regexp=^\+(.*$)
colours=bold green
colours=green
count=more
=======
# removed lines and filenames (unified diff)
regexp=^\-(--.+$|[^\-].*$|$)
colours=bold red
colours=red
count=more
========
# new lines
regexp=^\>([^\>].*|$)
colours=bold green
colours=green
count=more
=======
# removed lines
regexp=^\<([^\<].*|$)
colours=bold red
colours=red
count=more
=======
# lines affected
Expand Down
57 changes: 57 additions & 0 deletions grc/conf.dig
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
60 changes: 60 additions & 0 deletions grc/conf.ifconfig
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
33 changes: 33 additions & 0 deletions grc/conf.mount
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
24 changes: 24 additions & 0 deletions grc/conf.mtr
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
18 changes: 11 additions & 7 deletions grc/conf.netstat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.*
Expand All @@ -41,7 +45,7 @@ colours=bold red
=======
# status
regexp=LISTEN(ING)?
colours=bold blue
colours=cyan
=======
# status
regexp=TIME_WAIT
Expand Down
Binary file modified grc/conf.ps
Binary file not shown.
2 changes: 1 addition & 1 deletion grc/conf.traceroute
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# hostname
regexp=\s\w+[\w\-\.]+\w+
colours=bold yellow
colours=blue
count=once
-
# ip number
Expand Down
20 changes: 20 additions & 0 deletions grc/grc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,23 @@ conf.nmap
(^|[/\w\.]+/)ps\s?
conf.ps

# mount
(^|[/\w\.]+/)mount\s?
conf.mount

# df
(^|[/\w\.]+/)df\s?
conf.df

# mtr
(^|[/\w\.]+/)mtr\s?
conf.mtr

# ifconfig
(^|[/\w\.]+/)ifconfig\s?
conf.ifconfig

# dig
(^|[/\w\.]+/)dig\s?
conf.dig

0 comments on commit 28957c4

Please sign in to comment.