PS1 : Add remote connection indicator.
This commit is contained in:
parent
8633369a8d
commit
87124f2319
|
@ -72,6 +72,11 @@ function __prompt_command() {
|
||||||
PS1+="\n"
|
PS1+="\n"
|
||||||
PS1+="\[${color_default}\]"
|
PS1+="\[${color_default}\]"
|
||||||
|
|
||||||
|
# Show remote connections.
|
||||||
|
if [ -n "${SSH_TTY}" ]; then
|
||||||
|
PS1+=">"
|
||||||
|
fi
|
||||||
|
|
||||||
# set user tag
|
# set user tag
|
||||||
if $is_root; then
|
if $is_root; then
|
||||||
PS1+="# "
|
PS1+="# "
|
||||||
|
|
Reference in a new issue