mirror of https://github.com/garabik/grc.git
Add blkid du env free lsblk lspci commands
This commit is contained in:
parent
f29aeb671a
commit
a7c42cf56f
|
@ -0,0 +1,23 @@
|
|||
# Blk
|
||||
regexp=^(.+):\s
|
||||
colours=bright_green
|
||||
======
|
||||
# Blk mapper
|
||||
regexp=^(/dev/mapper/)(.+):\s
|
||||
colours=default,green,bright_green
|
||||
======
|
||||
# UUID
|
||||
regexp=\sUUID="([^"]+)
|
||||
colours=default,blue
|
||||
======
|
||||
# TYPE
|
||||
regexp=TYPE="([^"]+)
|
||||
colours=default,cyan
|
||||
======
|
||||
# LABEL
|
||||
regexp=LABEL="([^"]+)
|
||||
colours=default,bright_cyan
|
||||
======
|
||||
# PARTUUID
|
||||
regexp=PARTUUID="([^"]+)
|
||||
colours=default,magenta
|
|
@ -0,0 +1,27 @@
|
|||
# Cannot read
|
||||
regexp=.*cannot read directory.*(Permission denied)$
|
||||
colours=red,bold red
|
||||
======
|
||||
# Path
|
||||
regexp=\.\/([-\w\d\.\+\s]+)(\/[-\w\d\.\/]+)*
|
||||
colours=default,bold blue,blue
|
||||
======
|
||||
# Size 'K'
|
||||
regexp=\d*[.,]?\dKi?\s
|
||||
colours=green
|
||||
======
|
||||
# Size 'M'
|
||||
regexp=\d*[.,]?\dMi?\s
|
||||
colours=yellow
|
||||
======
|
||||
# Size 'G'
|
||||
regexp=\d*[.,]?\dGi?\s
|
||||
colours=red
|
||||
======
|
||||
# Size 'T'
|
||||
regexp=\d*[.,]?\dTi?\s
|
||||
colours=bold red
|
||||
======
|
||||
# Total
|
||||
regexp=(.*)\s+(total)$
|
||||
colours=bold yellow on_blue
|
|
@ -0,0 +1,3 @@
|
|||
# Main
|
||||
regexp=^([^=]+)(=)(.*)$
|
||||
colours=default,cyan,white,yellow
|
|
@ -0,0 +1,27 @@
|
|||
# Size 'K'
|
||||
regexp=\s\d*[.,]?\dKi?
|
||||
colours=green
|
||||
======
|
||||
# Size 'M'
|
||||
regexp=\s\d*[.,]?\dMi?
|
||||
colours=yellow
|
||||
======
|
||||
# Size 'G'
|
||||
regexp=\s\d*[.,]?\dGi?
|
||||
colours=red
|
||||
======
|
||||
# Size 'T'
|
||||
regexp=\s\d*[.,]?\dTi?
|
||||
colours=bold red
|
||||
======
|
||||
# Mem
|
||||
regexp=^Mem
|
||||
colours=bold cyan
|
||||
======
|
||||
# Swap
|
||||
regexp=^Swap
|
||||
colours=bold magenta
|
||||
======
|
||||
# Zero
|
||||
regexp=\s+0\w?(\s|$)
|
||||
colours=green
|
|
@ -0,0 +1,47 @@
|
|||
# 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 disk
|
||||
regexp=\sdisk\s
|
||||
colours=magenta
|
||||
======
|
||||
# Type lvm
|
||||
regexp=\slvm\s
|
||||
colours=bold cyan
|
||||
======
|
||||
# Type part
|
||||
regexp=\spart\s
|
||||
colours=cyan
|
||||
======
|
||||
# Type loop
|
||||
regexp=\sloop\s
|
||||
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
|
||||
regexp=\s\/.*$
|
||||
colours=bold yellow
|
|
@ -0,0 +1,19 @@
|
|||
# Address
|
||||
regexp=^(..):(..).(.)
|
||||
colours=default,bright_green,bright_yellow,red
|
||||
-
|
||||
# Ethernet
|
||||
regexp=(Ethernet controller|Network controller)
|
||||
colours=cyan
|
||||
-
|
||||
# Wireless
|
||||
regexp=Wireless
|
||||
colours=bright_cyan
|
||||
-
|
||||
# SATA
|
||||
regexp=SATA controller
|
||||
colours=green
|
||||
-
|
||||
# Audio
|
||||
regexp=Audio device
|
||||
colours=blue
|
21
grc.conf
21
grc.conf
|
@ -82,6 +82,10 @@ conf.mount
|
|||
(^|[/\w\.]+/)df\s?
|
||||
conf.df
|
||||
|
||||
# du
|
||||
(^|[/\w\.]+/)du\s?
|
||||
conf.du
|
||||
|
||||
# ip addr/link
|
||||
(^|[/\w\.]+/)ip a(ddr)*\s?
|
||||
conf.ipaddr
|
||||
|
@ -96,9 +100,26 @@ conf.iproute
|
|||
# ip neighbor
|
||||
(^|[/\w\.]+/)ip n(eighbor)*\s?
|
||||
conf.ipneighbor
|
||||
# env
|
||||
(^|[/\w\.]+/)env\s?
|
||||
conf.env
|
||||
# iptables
|
||||
(^|[/\w\.]+/)iptables\s?
|
||||
conf.iptables
|
||||
# lspci
|
||||
(^|[/\w\.]+/)lspci\s?
|
||||
conf.lspci
|
||||
|
||||
# lsblk
|
||||
(^|[/\w\.]+/)lsblk\s?
|
||||
conf.lsblk
|
||||
|
||||
# blkid
|
||||
(^|[/\w\.]+/)blkid\s?
|
||||
conf.blkid
|
||||
# free
|
||||
(^|[/\w\.]+/)free\s?
|
||||
conf.free
|
||||
# docker -----------------------------
|
||||
(^|[/\w\.]+/)docker ps\s?
|
||||
conf.dockerps
|
||||
|
|
Loading…
Reference in New Issue