Set hostname in prompt if through SSH

This commit is contained in:
Andrew R. M 2025-04-05 16:37:09 -04:00 committed by Andrew R. M.
parent ce8f3b4463
commit fc9a068d01

View File

@ -11,7 +11,7 @@ cyan="\[\033[1;36m\]"
no_color="\[\033[0m\]" no_color="\[\033[0m\]"
export PS1="${green}\$${no_color} " export PS1="${green}\$${no_color} "
if [ "${HOSTNAME}" != "crypt" ] && [ "${HOSTNAME}" != "tomb" ]; then if [ "${HOSTNAME}" != "crypt" ] && [ "${HOSTNAME}" != "tomb" ] || [ "${SSH_TTY}" != "" ]; then
PS1="${PS1}${blue}${HOSTNAME} ${PS1}" PS1="${PS1}${blue}${HOSTNAME} ${PS1}"
fi fi