Skip to content

Instantly share code, notes, and snippets.

@jsz0
Created October 3, 2015 21:14
Show Gist options
  • Save jsz0/b71fe4e160ba09037c8a to your computer and use it in GitHub Desktop.
Save jsz0/b71fe4e160ba09037c8a to your computer and use it in GitHub Desktop.
grc color enhancement for osx/diskutil
# 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