From a1b9a98969f64a95c73ac419a40fef946ead0b38 Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Sun, 15 Dec 2019 17:33:11 -0500 Subject: [PATCH] Attempt to special case displaying hostname in prompt --- bash/.bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index fc77278..23949bf 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -12,6 +12,10 @@ no_color="\[\033[0m\]" # Interactive Prompt: "$ " in green export PS1="${green}\$${no_color} " +if [ "${HOSTNAME}" != "crypt" ]; then + PS1="${PS1}${blue}${HOSTNAME}${PS1}" +fi + # Continuation Prompt: "> " in cyan export PS2="${cyan}>${no_color} " # Debugging Prompt: "# " in blue