PS1 : Add remote connection indicator.
This commit is contained in:
parent
8633369a8d
commit
fe6f326b00
|
@ -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+="# "
|
||||
|
|
Reference in a new issue