From fe6f326b0005fc8b033f719fffea7ad82f59943a Mon Sep 17 00:00:00 2001 From: phone Date: Thu, 4 Jan 2024 18:47:03 +0300 Subject: [PATCH] PS1 : Add remote connection indicator. --- .config/bash/module/Ps1.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/bash/module/Ps1.sh b/.config/bash/module/Ps1.sh index e898d35..f42e3c3 100644 --- a/.config/bash/module/Ps1.sh +++ b/.config/bash/module/Ps1.sh @@ -72,6 +72,11 @@ function __prompt_command() { PS1+="\n" PS1+="\[${color_default}\]" + # Show remote connections. + if [ -n "${SSH_TTY}" ]; then + PS1+="~" + fi + # set user tag if $is_root; then PS1+="# "