mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Customize df output with grc.
This commit is contained in:
47
dotfiles/grc/conf.df
Normal file
47
dotfiles/grc/conf.df
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# FS
|
||||||
|
#regexp=^.*?\s
|
||||||
|
regexp=^(\/[-\w\d.]+)+\s
|
||||||
|
colours=green,blue
|
||||||
|
======
|
||||||
|
regexp=^Filesystem.*
|
||||||
|
colours=white
|
||||||
|
======
|
||||||
|
# tmpfs lines
|
||||||
|
regexp=^tmpfs
|
||||||
|
colours=cyan
|
||||||
|
======
|
||||||
|
# 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
|
||||||
|
======
|
||||||
|
# Mounted on
|
||||||
|
regexp=\/$|(\/[-\w\d. ]+)+$
|
||||||
|
colours=green,bold green
|
||||||
|
======
|
||||||
|
# Use 0-69%
|
||||||
|
regexp=\b[1-6]?[0-9]%
|
||||||
|
colours=green
|
||||||
|
======
|
||||||
|
# Use 70-90%
|
||||||
|
regexp=[7-9][0-9]%
|
||||||
|
colours=yellow
|
||||||
|
======
|
||||||
|
# Use 90-97
|
||||||
|
regexp=9[0-7]%
|
||||||
|
colours=red
|
||||||
|
======
|
||||||
|
# Use 98-100
|
||||||
|
regexp=9[8-9]%|100%
|
||||||
|
colours=bold red
|
||||||
Reference in New Issue
Block a user