Use bash internal functionalities for grc detection

which is an external tool, where as type is a bash internal funciton
and always available

Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher 2016-12-27 13:17:27 +00:00
parent 021439191c
commit 1d4f9e1ca5
No known key found for this signature in database
GPG Key ID: E9402A79B03529A2
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
GRC=`which grc`
if [ "$TERM" != dumb ] && [ -n "$GRC" ]
then
GRC="$(type -p grc)"
if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
alias colourify="$GRC -es --colour=auto"
alias configure='colourify ./configure'
alias diff='colourify diff'