bashrc: Make the colours work with every OS.

This commit is contained in:
nyuszika7h 2011-09-11 18:44:58 +03:00 committed by Mika Suomalainen
parent 87537ed3b3
commit bfca6b9cd0

2
bashrc
View File

@ -41,7 +41,7 @@ esac
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
if which tput >&/dev/null && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)