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+="# "