Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add info about adding grc support for selected commands to .bash_prof…
…ile for bash users.
  • Loading branch information
jooray committed Mar 15, 2015
1 parent a1fc5f3 commit c00c03f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README
Expand Up @@ -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 changes: 23 additions & 0 deletions grc.bashrc
@@ -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

0 comments on commit c00c03f

Please sign in to comment.