set LABEL remote only when SSH_TTY set and not empty
This commit is contained in:
parent
ce74a328b5
commit
08b0271ed3
1 changed files with 2 additions and 2 deletions
4
PS1
4
PS1
|
@ -108,7 +108,7 @@ case "$TERM" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Labels: remote, tmpconfig, screen...
|
# Labels: remote, tmpconfig, screen...
|
||||||
if [ ! -z ${SSH_TTY+x} ]; then
|
if [ ! -z ${SSH_TTY:+x} ]; then
|
||||||
LABEL="${LABEL} \[$On_IRed\]\[$BBlack\]remote\[$Color_Off\]"
|
LABEL="${LABEL} \[$On_IRed\]\[$BBlack\]remote\[$Color_Off\]"
|
||||||
fi
|
fi
|
||||||
if $SSHS ; then
|
if $SSHS ; then
|
||||||
|
@ -126,7 +126,7 @@ case "$TERM" in
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Labels: remote, tmpconfig, screen...
|
# Labels: remote, tmpconfig, screen...
|
||||||
if [ ! -z ${SSH_TTY+x} ]; then
|
if [ ! -z ${SSH_TTY:+x} ]; then
|
||||||
LABEL="${LABEL} \[$On_Red\]\[$BWhite\]remote\[$Color_Off\]"
|
LABEL="${LABEL} \[$On_Red\]\[$BWhite\]remote\[$Color_Off\]"
|
||||||
fi
|
fi
|
||||||
if $SSHS ; then
|
if $SSHS ; then
|
||||||
|
|
Loading…
Reference in a new issue