diff --git a/bash/.bashrc.d/prompt.sh b/bash/.bashrc.d/prompt.sh index a13a30c..0571595 100644 --- a/bash/.bashrc.d/prompt.sh +++ b/bash/.bashrc.d/prompt.sh @@ -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