Skip to content

Instantly share code, notes, and snippets.

View ricma's full-sized avatar

Martin Richter ricma

  • University of Nottingham
  • Nottingham, United Kingdom
View GitHub Profile
@ricma
ricma / bashrc.sh
Created October 8, 2015 21:07 — forked from wadouk/bashrc.sh
Maven console in color
PURPLE=$(echo -en "\033[35m")
GREEN=$(echo -en "\033[32m")
RED=$(echo -en "\033[31m")
YELLOW=$(echo -e "\033[33m")
BLUE=$(echo -e "\033[1;34m")
NORMAL=$(echo -e "\033[0m")
mvn2() {
mvn $* | sed \
-e "s/^\(.ERROR. .*\)$/$RED\1$NORMAL/ ; #contain ERROR start 2nd char