zsh/du.grc

40 lines
599 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=bright_black
======
regexp=^ ?\d*[.,]?\dKi?\s
colours=bright_black
======
# Size 'M'
regexp=^\d{4,6}\s
colours=cyan
======
regexp=^ ?\d*[.,]?\dMi?\s
colours=cyan
======
# Size 'G'
regexp=^\d{7,9}\s
colours=yellow
======
regexp=^ ?\d*[.,]?\dGi?\s
colours=yellow
======
# Size 'T'
regexp=^\d{10,12}\s
colours=red
======
regexp=^ ?\d*[.,]?\dTi?\s
colours=red
======
# Total
regexp=(.*)\s+(total)$
colours=magenta