Add 'ssh:' to the prompt when in an SSH session
This commit is contained in:
parent
785166368a
commit
9668d24cac
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue