PS1 : Add remote connection indicator.

This commit is contained in:
Dmitry Voronin 2024-01-04 18:47:03 +03:00
parent 8633369a8d
commit 87124f2319

View file

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