Skip to content

Instantly share code, notes, and snippets.

@michaelavila
Created January 19, 2016 18:52
Show Gist options
  • Save michaelavila/12a0312c4721f9ae2790 to your computer and use it in GitHub Desktop.
Save michaelavila/12a0312c4721f9ae2790 to your computer and use it in GitHub Desktop.

Put the contents of the files in this gist in $HOME/.grc/ in their respective files.

# a grc module for colourising the maven outputs
regexp=^\[WARNING\]
colours=bold yellow
count=once
-
regexp=^\[ERROR\]
colours=bold red
count=once
-
# Passed
regexp=.* SUCCESS \[.*
colours=green
count=stop
-
regexp=.* BUILD SUCCESS
colours=green
count=stop
-
# Failed
regexp=(BUILD)? (failed|FAILURE|FAILED|FAIL)
colours=bold red
count=stop
-
regexp=Failures: [0-9]+
colours=bold green
count=once
-
regexp=Errors: [0-9]+
colours=bold red
count=once
-
# this is probably a pathname
regexp=~?([a-z_][a-z0-9_]{0,30})?/([^\0\n\ !$`&*()+]|\\\ )+\b/?
colours=blue
count=more
# mvn command
mvn\s
conf.mvn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment