set LABEL remote only when SSH_TTY set and not empty

This commit is contained in:
Jakobus Schürz 2020-01-17 06:14:54 +01:00
parent ce74a328b5
commit 08b0271ed3

4
PS1
View file

@ -108,7 +108,7 @@ case "$TERM" in
esac
# Labels: remote, tmpconfig, screen...
if [ ! -z ${SSH_TTY+x} ]; then
if [ ! -z ${SSH_TTY:+x} ]; then
LABEL="${LABEL} \[$On_IRed\]\[$BBlack\]remote\[$Color_Off\]"
fi
if $SSHS ; then
@ -126,7 +126,7 @@ case "$TERM" in
;;
*)
# Labels: remote, tmpconfig, screen...
if [ ! -z ${SSH_TTY+x} ]; then
if [ ! -z ${SSH_TTY:+x} ]; then
LABEL="${LABEL} \[$On_Red\]\[$BWhite\]remote\[$Color_Off\]"
fi
if $SSHS ; then