Grc

From The World according to Vissie
Jump to navigation Jump to search

Generic Colouriser

https://github.com/garabik/grc

Add this to your profile

[ [ -s "/etc/profile.d/grc.bashrc" ] ] && source /etc/profile.d/grc.bashrc
export PATH="$PATH:/usr/local/bin/"


I had to edit /usr/local/bin/grc and /usr/local/bin/grcat to reflect my Python version and I had to make the files executable.

some regex

date

======
# Date
regexp=(\w+){3} (\w+){3} [0-9]+ [0-9]+:[0-9]+:[0-9]+ [0-9]+
colours=green
count=more