From 9668d24cac4eed02c41255b404db90787a30e9de Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 5 Oct 2019 22:53:04 +0100 Subject: [PATCH] Add 'ssh:' to the prompt when in an SSH session --- roles/home/files/shrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/home/files/shrc b/roles/home/files/shrc index 57fca6d..37c0a04 100644 --- a/roles/home/files/shrc +++ b/roles/home/files/shrc @@ -31,7 +31,7 @@ export PYTHONWARNINGS="ignore::UserWarning" if [ "$SHELL" = "/bin/sh" ]; then export PS1='\$ ' else - export PS1='${SSH_TTY:+[$(id -un)@$(hostname -s)]}\$ ' + export PS1='${SSH_TTY:+[ssh:$(id -un)@$(hostname -s)]}\$ ' fi if [ "$BASH" ]; then