highlight host if connected over ssh
This commit is contained in:
parent
2c017845a0
commit
1798d6f536
1 changed files with 5 additions and 1 deletions
|
@ -1 +1,5 @@
|
|||
export PS1="\[\e[1;36m\]\u@\h\[\e[1;0m\]:\[\e[1;92m\]\w\[\e[1;0m\]$ "
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
export PS1="\[\e[1;36m\]\u@\[\e[1;35m\]\h\[\e[1;0m\]:\[\e[1;92m\]\w\[\e[1;0m\]$ "
|
||||
else
|
||||
export PS1="\[\e[1;36m\]\u@\h\[\e[1;0m\]:\[\e[1;92m\]\w\[\e[1;0m\]$ "
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue