No need to specify --colour as it defaults to auto

This commit is contained in:
Alexander Kapshuna 2018-05-03 15:50:49 +03:00
parent ae88b81759
commit 7a5f76aeee
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -34,7 +34,7 @@ if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
# Set alias for available commands.
for cmd in $cmds ; do
if (( $+commands[$cmd] )) ; then
alias $cmd="grc --colour=auto $(whence $cmd)"
alias $cmd="grc $(whence $cmd)"
fi
done