Skip to content

Instantly share code, notes, and snippets.

@cristobal
Created August 26, 2014 12:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cristobal/ff81668bd9c3c40baa2f to your computer and use it in GitHub Desktop.
Save cristobal/ff81668bd9c3c40baa2f to your computer and use it in GitHub Desktop.
Colorize with CCZE
# CCZE Colourize Config for Centos
# http://lintut.com/colorize-log-files-on-linux-using-ccze-tool/
# http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
CCZE=`which ccze`
if [ "$TERM" != dumb ] && [ -n "$CCZE" ]
then
function colourify { `$@` | $CCZE -A }
alias colourify=colourify
alias configure='colourify ./configure'
alias diff='colourify diff'
alias make='colourify make'
alias gcc='colourify gcc'
alias g++='colourify g++'
alias as='colourify as'
alias gas='colourify gas'
alias ld='colourify ld'
alias netstat='colourify netstat'
alias ping='colourify ping'
alias traceroute='colourify /usr/sbin/traceroute'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment