Fixed the tput issue when scp, check for tty before tput

This commit is contained in:
jon
2019-06-15 23:06:50 +00:00
parent f4974b72be
commit 2387c63483

View File

@@ -49,7 +49,7 @@ export HISTTIMEFORMAT="%F %T: "
export HISTSIZE=1000 export HISTSIZE=1000
export HISTFILESIZE=2000 export HISTFILESIZE=2000
if [ ! -z "$TERM" ]; then if tty -s; 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