Fixed the tput issue when scp, check for tty before tput
This commit is contained in:
@@ -49,7 +49,7 @@ export HISTTIMEFORMAT="%F %T: "
|
||||
export HISTSIZE=1000
|
||||
export HISTFILESIZE=2000
|
||||
|
||||
if [ ! -z "$TERM" ]; then
|
||||
if tty -s; then
|
||||
export PS1="\[$(tput bold)\]\[$(tput setaf 2)\][\u@\h \W]\\$ \[$(tput sgr0)\]"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user