mirror of https://github.com/garabik/grc.git
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:
parent
021439191c
commit
1d4f9e1ca5
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue