Add info about adding grc support for selected commands to .bash_profile for bash users.

This commit is contained in:
Juraj Bednar 2015-03-15 19:39:27 +01:00
parent a1fc5f3fd7
commit c00c03fc7a
2 changed files with 26 additions and 0 deletions

3
README
View File

@ -234,3 +234,6 @@ If you have GNU tail:
or, if you have recent BSD tail:
tail -F /var/log/syslog | grcat conf.log >/dev/tty12
If you want to start using grc automatically with supported commands, add
source /etc/grc.bashrc
to your .bash_profile (assuming you copied grc.bashrc to /etc)

23
grc.bashrc Normal file
View File

@ -0,0 +1,23 @@
GRC=`which grc`
if [ "$TERM" != dumb ] && [ -n "$GRC" ]
then
alias colourify="$GRC -es --colour=auto"
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'
alias head='colourify head'
alias tail='colourify tail'
alias dig='colourify dig'
alias mount='colourify mount'
alias ps='colourify ps'
alias mtr='colourify mtr'
alias df='colourify df'
fi