Add several new apps, update grc.fish

This commit is contained in:
Isaias Pina 2016-06-18 18:18:18 -05:00
parent 9374a08e17
commit b1262d7007
42 changed files with 828 additions and 111 deletions

View File

@ -1,10 +1,10 @@
# Blk
regexp=^(.+):\s
colours=bright_green
regexp=^(/dev/)(.+):\s
colours=default,green,bright_green
======
# Blk mapper
regexp=^(/dev/mapper/)(.+):\s
colours=default,green,bright_green
regexp=^/dev/(mapper/)(.+):\s
colours=unchanged,underline green,bright_green
======
# UUID
regexp=\sUUID="([^"]+)

View File

@ -1,4 +1,5 @@
# FS
#regexp=^.*?\s
regexp=^(?!Filesystem).*?\s
colours=green
======
@ -37,3 +38,7 @@ colours=red
# Use 95-100
regexp=[9][5-9]%|100%
colours=bold red
# tmpfs lines
regexp=^tmpfs.*
colours=bright_black

View File

@ -20,5 +20,5 @@ count=more
=======
# lines affected
regexp=^@@ .* @@$
colours=cyan
colours=magenta
count=more

View File

@ -25,5 +25,7 @@ colours=green
#comments
regexp=^;;\s\w*\s*\w*
colours=yellow
#=======
=======
#Title
regexp=; <<>> DiG (\d+\.\d+\.\d+).*<<>>\s(\S+)$
colours=default,green,bold magenta

11
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

@ -30,6 +30,10 @@ colours=yellow
regexp=\s\d*[\.,]?\d*\sGB?
colours=red
=====
# CREATED hours
regexp=\s+\d+\shours\s\w+
colours=bright_green
======
# CREATED days
regexp=\s+\d+\sdays\s\w+
colours=green

43
conf.dockerpull Normal file
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

16
conf.du
View File

@ -1,25 +1,25 @@
# Cannot read
regexp=.*cannot read directory.*(Permission denied)$
colours=red,bold red
# Cannot read STDERR, not working
regexp=^du.*
colours=red
======
# Path
regexp=\.\/([-\w\d\.\+\s]+)(\/[-\w\d\.\/]+)*
regexp=\s+[\.\/]+([\w\s\-\_\.]+)(\/.*)?$
colours=default,bold blue,blue
======
# Size 'K'
regexp=\d*[.,]?\dKi?\s
regexp=^\d*[.,]?\dKi?\s
colours=green
======
# Size 'M'
regexp=\d*[.,]?\dMi?\s
regexp=^\d*[.,]?\dMi?\s
colours=yellow
======
# Size 'G'
regexp=\d*[.,]?\dGi?\s
regexp=^\d*[.,]?\dGi?\s
colours=red
======
# Size 'T'
regexp=\d*[.,]?\dTi?\s
regexp=^\d*[.,]?\dTi?\s
colours=bold red
======
# Total

31
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

15
conf.getsebool Normal file
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

View File

@ -4,7 +4,7 @@ regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bold green
=======
# ipv6
regexp=[0-9a-fA-F]{0,4}(\:\:?[0-9a-fA-F]{0,4})+?(\/\d{1,3})
regexp=\b[0-9a-fA-F]{1,4}(\:\:?[0-9a-fA-F]{1,4})+
colours=bold green
=======
# hwaddr
@ -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

23
conf.iostat_sar Normal file
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

View File

@ -2,6 +2,10 @@
regexp=inet\s([^\/]+)\/(\d+)
colours=default,bold yellow,bold magenta
=====
# broadcast
regexp=brd\s([^}s]+)
colours=default,dark
=====
# IP6
regexp=inet6\s([^\/]+)\/(\d+)
colours=default,yellow,magenta
@ -22,10 +26,14 @@ colours=default,bright_white,bold red,bold red
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
=====
# Master dev
regexp=\smaster\s(\S+)\s
colours=default,on_blue black
colours=default,on_blue white

View File

@ -10,6 +10,14 @@ colours=default,yellow,bold yellow
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

View File

@ -1,71 +1,88 @@
# Chains
# Chains Custom name
regexp=^Chain\s(\S+)\s\(.*$
colours=white, bold bright_blue
======
# Title
regexp=target\s+prot\s+opt\s+source\s+destination
-
# 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).*
colours=bold black
======
# ACCEPT
-
# JUMP Destiny ----------------------------------------------------------------
regexp=ACCEPT
colours=bright_green
======
# DROP
-
regexp=DROP
colours=red
======
# Reject
regexp=REJECT
colours=bright_red
======
# QUEUE
-
regexp=REJECT
colours=red
-
regexp=QUEUE
colours=bright_cyan
======
# RETURN
colours=on_red white
-
regexp=RETURN
colours=cyan
======
# MASQUERADE
colours=on_green white
-
regexp=MASQUERADE
colours=bright_magenta
======
# DNAT
-
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

47
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

50
conf.ls
View File

@ -2,30 +2,50 @@
regexp=(\s|^)\d+([.,]\d+)?\s?([kKMG][bB]|[bB]|[kKMG])(?=[\s,]|$)
colours=yellow
=======
# device major minor numbers
regexp=\s(\d+),\s+(\d+)\s
colours=default,bright_yellow ,yellow
=======
# time
regexp=(\s|^)\d+(:\d+)+(?=[\s,]|$)
colours=bold green
=======
# mounth
regexp=\s[a-z]{3}\s
colours=yellow
colours=white
=======
# month
#regexp=\s[a-z]{3}\s
#colours=yellow
#=======
#regexp=(?<=\d):(?=\d)
#colours=bold yellow
#=======
# root
regexp=root|wheel(?=\s|$)
colours=bold red
regexp=\s(root|wheel)(?=\s|$)
colours=unchanged,bold white on_red
=======
# -rwxrwxrwx
# 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 blue
=======
colours=unchanged,unchanged,bold white
-
# owner rwx
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
colours=unchanged,unchanged,bold green,unchanged,bold green,unchanged,bold green
=======
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,bold yellow,unchanged,bold yellow,unchanged,bold yellow
=======
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
-
# other rwx
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
colours=unchanged,unchanged,bold red,unchanged,bold red,unchanged,bold red
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
-
# sStT all
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
colours=unchanged,bold green,bold yellow, bold red
-
# ACL
regexp=^\S{10}(\+)
colours=unchanged,on_cyan bold white

19
conf.lsattr Normal file
View File

@ -0,0 +1,19 @@
# Filename
regexp=\S+\s(\S+)
colours=bold
-
# Normal
regexp=[aAcCdDeijsStTu]
colours=cyan
-
# User Namespace
regexp=[iadA]
colours=bright_green
-
# Read Only
regexp=[EhINXZ]
colours=red
-
# Separators
regexp=[\-]
colours=dark

View File

@ -3,13 +3,17 @@ regexp=^[a-z]+\d?\s
colours=bold white
======
# Partition
regexp=([├└─│]+)(\S+)
regexp=([├└─│]+|[\|\`\-]+)(\S+)
colours=bright_green
======
# Partition - LVM
regexp=\s+([├└─│]+)(\S+)
regexp=\s+([├└─│]+|[\|\`\-]+)(\S+)
colours=default,default,bright_cyan
======
# Type crypt
regexp=\scrypt\s
colours=on_magenta white
======
# Type disk
regexp=\sdisk\s
colours=magenta
@ -45,3 +49,7 @@ colours=bold red
# Mount
regexp=\s\/.*$
colours=bold yellow
======
# Mount [SWAP]
regexp=\s\[(SWAP)\]
colours=default,bright_magenta

3
conf.lsmod Normal file
View File

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

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

1
conf.mount Symbolic link
View File

@ -0,0 +1 @@
conf.mount2

19
conf.mount.old Normal file
View File

@ -0,0 +1,19 @@
#/full/path
regexp=\s/[-\w\d.]+(\s|/[-\w\d./]+)
colours=cyan
=======
#filesystem
regexp=^\w+\s
colours=yellow
=======
#type filesystem
#regexp=(?<=type)\s*
#colours=red
#=======
# /dev/sda
regexp=^(/dev/)?[s]d[a-f][0-9]*(?=[^\w\d]|$)
colours=bold green
=======
#mount options
regexp=(?<=[,(])[^,]*(?=[,)])
colours=green

View File

@ -3,3 +3,9 @@
regexp=^(.*) on (.*) type (.*) \((.*)\)
colours=default,green,yellow,blue,magenta
=====
regexp=^cgroup.*
colours=bright_black
=====
regexp=^tmpfs.*
colours=bright_black

35
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

View File

@ -1,31 +1,43 @@
# ip number
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=magenta
colours=bright_blue
=======
# ipv6 number
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=magenta
=======
# time
regexp=\d+\.\d+\sms
colours=green
# icmp_seq=#
regexp=icmp_seq=(\d+)
colours=default,yellow
=======
# name
regexp=(?:[fF]rom|PING)\s(\S+)\s
colours=default,blue
=======
# time
regexp=\d+\sms
colours=green
======
# time
regexp=time=
colours=yellow
regexp=([0-9\.]+)\s?ms
colours=default,green
=======
# DUP
regexp=DUP\!
colours=red
=======
# (,)
regexp=\(|\)
colours=yellow
# Destination Host Unreachable
regexp=Destination Host Unreachable
colours=red
=======
# unknown host
regexp=.+unknown\shost\s(.+)
colours=red,bold red
-
# statustics header
regexp=--- \S+ ping statistics ---
colours=bold
-
# 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

39
conf.ps
View File

@ -1,6 +1,6 @@
# /full/path
regexp=(\s|^)/[-\w\d.]+/[-\w\d./]+
colours=white
colours=bold white
=======
# CAPS LINE
regexp=^[A-Z\s%]*([A-Z]{3})[A-Z\s%]*$
@ -12,7 +12,11 @@ colours=underline
=======
# VMSTAT
regexp=(\s|^)\d+([.,]\d+)?(?=[\s,]|$)
colours=bold green
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,]|$)
@ -27,8 +31,9 @@ regexp=(?<=\s)-[\w\d]+(?=\s|$)
colours=yellow
=======
# --long-option=
regexp=(?<=\s)--[-\w\d]+[\w\d](?==|\s|$)(=?)
colours=cyan,white
# 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:/]+\]
@ -36,12 +41,32 @@ colours=cyan
=======
# root
regexp=root|wheel(?=\s|$)
colours=red
colours=bold red
=======
# pts
regexp=(\s|^)pts/\d+(?=[^\w\d]|$)
colours=bold yellow
colours=bright_yellow
=======
# tty
regexp=(\s|^)tty\d+(?=[^\w\d]|$)
colours=bold cyan
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

19
conf.semanage Normal file
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

23
conf.showmount Normal file
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

84
conf.ss Normal file
View File

@ -0,0 +1,84 @@
# Local Address:Port
regexp=\s((?:\d+\.){3}\d+|\*|::1?|[\w\d\-\_\.]+):(\S+)\s+\s((?:\d+\.){3}\d+|\*|::1?|[\w\d\-\_\.]+):(\S+)
colours=default,bright_green,bright_red,cyan,magenta
=======
# 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
=======
# status
regexp=\[.*\]
colours=green
=======
# path
regexp=(\@)[\dabcdef]+
colours=green, bold green
=======
# timer
regexp=\d+sec
colours=yellow
=======
#Skip header
regexp=(Netid|State).*$
colours=default

40
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

12
conf.sysctl Normal file
View File

@ -0,0 +1,12 @@
# Main
regexp=(\w+)\.(\S+) = (.+)$
colours=default,bright_green,cyan,yellow
-
# subcategory
regexp=\w+\.(\S+(?=\.))\.
colours=unchanged,bright_cyan
#-
## subcategory
#regexp=\.
#colours=unchanged
#replace=/

41
conf.systemctl Normal file
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

7
conf.tcpdump Normal file
View File

@ -0,0 +1,7 @@
# From Address
regexp=((\d+\.)+)(\w+)\s>
colours=green
-
# To Address
regexp=>\s((\d+\.)+)(\w+)
colours=cyan

View File

@ -1,6 +1,6 @@
# hostname
regexp=\s\w+[\w\-\.]+\w+
colours=bold yellow
colours=bright_yellow
count=once
-
# ip number

3
conf.tune2fs Normal file
View File

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

11
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
conf.uptime Normal file
View File

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

20
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

1
default Symbolic link
View File

@ -0,0 +1 @@
/usr/share/grc/

View File

@ -31,4 +31,6 @@ then
alias mount='colourify mount'
alias ps='colourify ps'
alias mtr='colourify mtr'
alias semanage='colourify semanage'
alias getsebool='colourify setsebool'
fi

View File

@ -30,6 +30,14 @@ conf.gcc
(^|[/\w\.]+/)netstat\s?
conf.netstat
# stat command
(^|[/\w\.]+/)stat\s?
conf.stat
# ss command
(^|[/\w\.]+/)ss\s?
conf.ss
# diff command
(^|[/\w\.]+/)diff\s?
conf.diff
@ -38,9 +46,9 @@ conf.diff
(^|[/\w\.]+/)wdiff\s?
conf.wdiff
# last command
(^|[/\w\.]+/)last\s?
conf.log
# last/who command
(^|[/\w\.]+/)(last|who)\s?
conf.last
# ldap tools
(^|[/\w\.]+/)ldap
@ -71,7 +79,7 @@ conf.dig
conf.ifconfig
# ls command
(^|[/\w\.]+/)ls\s?
(^|[/\w\.]+/)ls\s
conf.ls
# mount
@ -90,7 +98,7 @@ conf.du
(^|[/\w\.]+/)ip a(ddr)*\s?
conf.ipaddr
(^|[/\w\.]+/)ip l(ink)*\s?
(^|[/\w\.]+/)ip ?(-.)* ?l(ink)*\s?
conf.ipaddr
# ip route
@ -100,12 +108,19 @@ conf.iproute
# ip neighbor
(^|[/\w\.]+/)ip n(eighbor)*\s?
conf.ipneighbor
# env
(^|[/\w\.]+/)env\s?
conf.env
# systemctl show
(^|[/\w\.]+/)systemctl show\s?
conf.env
# iptables
(^|[/\w\.]+/)iptables\s?
conf.iptables
# lspci
(^|[/\w\.]+/)lspci\s?
conf.lspci
@ -117,9 +132,15 @@ conf.lsblk
# blkid
(^|[/\w\.]+/)blkid\s?
conf.blkid
# iostat / sar
(^|[/\w\.]+/)(iostat|sar)\s?
conf.iostat_sar
# free
(^|[/\w\.]+/)free\s?
conf.free
# docker -----------------------------
(^|[/\w\.]+/)docker ps\s?
conf.dockerps
@ -130,6 +151,9 @@ conf.dockerimages
(^|[/\w\.]+/)docker search\s?
conf.dockersearch
#(^|[/\w\.]+/)docker pull\s?
#conf.dockerpull
(^|[/\w\.]+/)docker-machine ls\s?
conf.docker-machinels
@ -145,3 +169,63 @@ conf.dockerversion
# journalctl command
(^|[/\w\.]+/)journalctl?\s
conf.log
# systemctl command
(^|[/\w\.]+/)systemctl?\s
conf.systemctl
# sysctl command
(^|[/\w\.]+/)sysctl?\s
conf.sysctl
# tcpdump command
(^|[/\w\.]+/)tcpdump\s?
conf.tcpdump
# tune2fs command
(^|[/\w\.]+/)tune2fs\s?
conf.tune2fs
# lsmod
(^|[/\w\.]+/)lsmod\s?
conf.lsmod
# lsattr
(^|[/\w\.]+/)lsattr\s?
conf.lsattr
# semanage
(^|[/\w\.]+/)semanage boolean\s?
conf.semanage
# getsebool
(^|[/\w\.]+/)getsebool\s?
conf.getsebool
# ulimit
(^|[/\w\.]+/)ulimit\s?
conf.ulimit
# vmstat
(^|[/\w\.]+/)vmstat\s?
conf.vmstat
# dnf
(^|[/\w\.]+/)dnf\s?
conf.dnf
# nmap
(^|[/\w\.]+/)nmap\s?
conf.nmap
# uptime | w
(^|[/\w\.]+/)(uptime|w)\s?
conf.uptime
# getfacl
(^|[/\w\.]+/)getfacl\s?
conf.getfacl
# showmount
(^|[/\w\.]+/)showmount\s?
conf.showmount

11
grc.fish Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env fish
# Main File: ~/.local/share/omf/pkg/grc/init.fish
# echo $grc_plugin_execs
set -U grc_plugin_execs cat cvs df diff dig gcc g++ ls ifconfig \
make mount mtr netstat ping ps tail traceroute \
wdiff \
blkid du docker docker-machine env ip iostat \
last lsattr lsblk lspci lsmod getfacl getsebool ulimit uptime nmap \
free semanage sar ss sysctl systemctl stat showmount tune2fs \
vmstat w who