2
0
mirror of https://github.com/garabik/grc.git synced 2024-11-10 21:26:52 +01:00
bash-color-grc/colourfiles/conf.df
Vincent Milum Jr f6788db3e1
Fixing/extending df command
Fixing some percentages not detecting properly.
Extending support so "df" has colors just like "df -h"
2020-02-03 13:53:44 -08:00

45 lines
725 B
Plaintext

# FS
#regexp=^.*?\s
regexp=^(?!Filesystem)(\/[-\w\d.]+)+\s
colours=blue,bold blue
======
# Size 'K'
regexp=\s\d*[.,]?\d(K|B)i?\s|\b\d{1,3}\b
colours=green
======
# Size 'M'
regexp=\s\d*[.,]?\dMi?\s|\b\d{4,6}\b
colours=yellow
======
# Size 'G'
regexp=\s\d*[.,]?\dGi?\s|\b\d{7,9}\b
colours=red
======
# Size 'T'
regexp=\s\d*[.,]?\dTi?\s|\b\d{10,12}\b
colours=bold red
======
# Mounted on
regexp=\/$|(\/[-\w\d. ]+)+$
colours=green,bold green
======
# Use 0-60%
regexp=\s[1-6]?[0-9]%\s
colours=green
======
# Use 70-90%
regexp=\s[7-9][0-9]%\s
colours=yellow
======
# Use 90-97%
regexp=\s9[0-7]%\s
colours=red
======
# Use 98-100%
regexp=\s9[8-9]%|100%\s
colours=bold red
======
# tmpfs lines
regexp=^tmpfs.*
colours=bright_black