From 87124f2319d3ae1e7e2f1c76b791c4f643a31b27 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..160bce0 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+="# "