2
0
mirror of https://github.com/garabik/grc.git synced 2024-09-18 17:31:29 +02:00
bash-color-grc/colourfiles/conf.du
Vincent Milum Jr 43092396e8
Fixing du colorization
1) du without -h is now supported.
2) du -h can output a 2-digit file size, eg " 25MB", and will have a space character for padding, and this is now accounted for.
2020-01-08 14:02:08 -08:00

40 lines
605 B
Plaintext

# Cannot read STDERR, not working
regexp=^du.*
colours=red
======
# Path
regexp=\s+[\.\/]+([\w\s\-\_\.]+)(\/.*)?$
colours=default,bold blue,blue
======
# Size 'K'
regexp=^\d{1,3}\s
colours=green
======
regexp=^ ?\d*[.,]?\dKi?\s
colours=green
======
# Size 'M'
regexp=^\d{4,6}\s
colours=yellow
======
regexp=^ ?\d*[.,]?\dMi?\s
colours=yellow
======
# Size 'G'
regexp=^\d{7,9}\s
colours=red
======
regexp=^ ?\d*[.,]?\dGi?\s
colours=red
======
# Size 'T'
regexp=^\d{10,12}\s
colours=bold red
======
regexp=^ ?\d*[.,]?\dTi?\s
colours=bold red
======
# Total
regexp=(.*)\s+(total)$
colours=bold yellow on_blue