mirror of https://github.com/garabik/grc.git
Fixing/extending df command
Fixing some percentages not detecting properly. Extending support so "df" has colors just like "df -h"
This commit is contained in:
parent
92aac170d0
commit
f6788db3e1
|
@ -4,19 +4,19 @@ regexp=^(?!Filesystem)(\/[-\w\d.]+)+\s
|
|||
colours=blue,bold blue
|
||||
======
|
||||
# Size 'K'
|
||||
regexp=\s\d*[.,]?\dKi?\s
|
||||
regexp=\s\d*[.,]?\d(K|B)i?\s|\b\d{1,3}\b
|
||||
colours=green
|
||||
======
|
||||
# Size 'M'
|
||||
regexp=\s\d*[.,]?\dMi?\s
|
||||
regexp=\s\d*[.,]?\dMi?\s|\b\d{4,6}\b
|
||||
colours=yellow
|
||||
======
|
||||
# Size 'G'
|
||||
regexp=\s\d*[.,]?\dGi?\s
|
||||
regexp=\s\d*[.,]?\dGi?\s|\b\d{7,9}\b
|
||||
colours=red
|
||||
======
|
||||
# Size 'T'
|
||||
regexp=\s\d*[.,]?\dTi?\s
|
||||
regexp=\s\d*[.,]?\dTi?\s|\b\d{10,12}\b
|
||||
colours=bold red
|
||||
======
|
||||
# Mounted on
|
||||
|
@ -24,19 +24,19 @@ regexp=\/$|(\/[-\w\d. ]+)+$
|
|||
colours=green,bold green
|
||||
======
|
||||
# Use 0-60%
|
||||
regexp=[\b1-6][0-9]?%|0%
|
||||
regexp=\s[1-6]?[0-9]%\s
|
||||
colours=green
|
||||
======
|
||||
# Use 70-90%
|
||||
regexp=[7-9][0-9]%
|
||||
regexp=\s[7-9][0-9]%\s
|
||||
colours=yellow
|
||||
======
|
||||
# Use 90-97
|
||||
regexp=9[0-7]%
|
||||
# Use 90-97%
|
||||
regexp=\s9[0-7]%\s
|
||||
colours=red
|
||||
======
|
||||
# Use 98-100
|
||||
regexp=9[8-9]%|100%
|
||||
# Use 98-100%
|
||||
regexp=\s9[8-9]%|100%\s
|
||||
colours=bold red
|
||||
======
|
||||
# tmpfs lines
|
||||
|
|
Loading…
Reference in New Issue