Expand collapsed bash prompt hostname matching

This commit is contained in:
Andrew R. M 2022-06-30 19:38:35 -04:00
parent ec64564a12
commit 5d5a099936

View File

@ -10,9 +10,8 @@ magenta="\[\033[1;35m\]"
cyan="\[\033[1;36m\]" cyan="\[\033[1;36m\]"
no_color="\[\033[0m\]" no_color="\[\033[0m\]"
# Interactive Prompt: "$ " in green
export PS1="${green}\$${no_color} " export PS1="${green}\$${no_color} "
if [ "${HOSTNAME}" != "crypt" ]; then if [ "${HOSTNAME}" != "crypt" ] && [ "${HOSTNAME}" != "tomb" ]; then
PS1="${PS1}${blue}${HOSTNAME} ${PS1}" PS1="${PS1}${blue}${HOSTNAME} ${PS1}"
fi fi