Fix Direnv prompt whenver off primary hosts

This commit is contained in:
Andrew R. M 2024-05-21 20:33:17 +00:00
parent ac168d66d7
commit 772da66b96

View File

@ -24,8 +24,8 @@ fi
export PS1="${green}\$${no_color} "
export DIRENV_PS1="${red}\$${no_color} "
if [ "${HOSTNAME}" != "crypt" ] && [ "${HOSTNAME}" != "tomb" ] || [ "${SSH_TTY}" != "" ]; then
DIRENV_PS1="${DIRENV_PS1}${blue}${HOSTNAME} ${DIRENV_PS1}"
PS1="${PS1}${blue}${HOSTNAME} ${PS1}"
DIRENV_PS1="${PS1}${blue}${HOSTNAME} ${PS1}"
fi
export ORIG_PS1=${PS1}