Created
August 26, 2014 12:27
-
-
Save cristobal/ff81668bd9c3c40baa2f to your computer and use it in GitHub Desktop.
Colorize with CCZE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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