highlight host if connected over ssh

This commit is contained in:
Grigory Shipunov 2021-12-02 13:44:46 +01:00
parent 2c017845a0
commit 1798d6f536
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C

View file

@ -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