Skip to content

Instantly share code, notes, and snippets.

@RobSis
Created October 8, 2014 11:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobSis/50af3d3ef8e747a0bd18 to your computer and use it in GitHub Desktop.
Save RobSis/50af3d3ef8e747a0bd18 to your computer and use it in GitHub Desktop.
A grc module for colourising the maven outputs
# 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
@andrewdacenko
Copy link

Nice conf! Thanks for sharing 👍

@sarnobat
Copy link

I was about to lament my inertia about abandoning my own customizations, but I just remembered grcat makes it easy to switch different configurations. Man I love grcat.

@sarnobat
Copy link

Sadly this isn't so nice on dark backgrounds. But nonetheless thanks for the efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment