diff --git a/files/usr/etc/profile.d/alias.bash b/files/usr/etc/profile.d/alias.bash index a73d1d62..70590d55 100644 --- a/files/usr/etc/profile.d/alias.bash +++ b/files/usr/etc/profile.d/alias.bash @@ -24,7 +24,7 @@ if test "$is" != "ksh" ; then alias -- -='popd' fi alias rd=rmdir -if type -p tput >/dev/null 2>&1 && test -n "$TERM" -a -t 1 && test "$(tput colors)" -ge 8 ; then +if type -p tput >/dev/null 2>&1 && test -n "$TERM" -a -t 1 && test "$(tput colors || echo 0)" -ge 8 ; then alias egrep='grep -E --color=auto' alias fgrep='grep -F --color=auto' alias grep='grep --color=auto'