Created
October 3, 2015 21:14
-
-
Save jsz0/b71fe4e160ba09037c8a to your computer and use it in GitHub Desktop.
grc color enhancement for osx/diskutil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# verbs | |
regexp=(<verb>|list|merge|rename|resize|split|info|eject|verify|erase|repair|Filesystems|Volume|Optical|Partitions?|partition|Erase|secure|zero|random|listFilesystems|activity|mountDisk|mount|Disk|reformat|enableJournal|disableJournal|moveJournal|enableOwnership|disableOwnership|coreStorage|appleRAID) | |
colours=green | |
===== | |
# options | |
regexp=(<options>) | |
colours=yellow | |
===== | |
# headers | |
regexp=(TYPE.NAME|SIZE|IDENTIFIER) | |
colours=blue | |
===== | |
# unchanged | |
regexp=(mounted|mountable) | |
colours=default | |
===== | |
# filesystems | |
regexp=(Apple_HFS|Apple_Boot|ZFS|GUID_partition_scheme) | |
colours=yellow | |
===== | |
# dev-disks | |
regexp=(^[/]dev[/]disk[0-9]|^[/]dev[/]disk[[0-9][0-9]) | |
colours=bold cyan | |
====== | |
# formatting | |
regexp=([(]|[)]|[,]|[:]|[*]|[+]|GB|TB|MB) | |
colours=cyan | |
====== | |
# capacity | |
regexp=([0-9]?[.][0-9]?|[0-9][0-9]?[.][0-9]|[0-9][0-9][0-9]?[.][0-9]) | |
colours=magenta | |
===== | |
# keywords | |
regexp=(internal|physical|disk.image) | |
colours=magenta | |
====== | |
# partiion-nums | |
regexp=([#][:]|[0-9][:]) | |
colours=bold green | |
====== | |
# identifer-disk | |
regexp=(\040disk[0-9]) | |
colours=green | |
====== | |
# identifer-slice | |
regexp=(s[0-9]$) | |
colours=bold green | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment