Add 'ssh:' to the prompt when in an SSH session

This commit is contained in:
Anthony Rose 2019-10-05 22:53:04 +01:00
parent 785166368a
commit 9668d24cac

View file

@ -31,7 +31,7 @@ export PYTHONWARNINGS="ignore::UserWarning"
if [ "$SHELL" = "/bin/sh" ]; then if [ "$SHELL" = "/bin/sh" ]; then
export PS1='\$ ' export PS1='\$ '
else else
export PS1='${SSH_TTY:+[$(id -un)@$(hostname -s)]}\$ ' export PS1='${SSH_TTY:+[ssh:$(id -un)@$(hostname -s)]}\$ '
fi fi
if [ "$BASH" ]; then if [ "$BASH" ]; then