Changed my tty test in bashrc

This commit is contained in:
jon
2019-06-15 23:27:22 +00:00
parent 2387c63483
commit b7d1eb1cf1

View File

@@ -49,7 +49,8 @@ export HISTTIMEFORMAT="%F %T: "
export HISTSIZE=1000 export HISTSIZE=1000
export HISTFILESIZE=2000 export HISTFILESIZE=2000
if tty -s; then #if tty -s; then
if [ -t 1 ]; then
export PS1="\[$(tput bold)\]\[$(tput setaf 2)\][\u@\h \W]\\$ \[$(tput sgr0)\]" export PS1="\[$(tput bold)\]\[$(tput setaf 2)\][\u@\h \W]\\$ \[$(tput sgr0)\]"
fi fi