From 959907eb895974549c579365c7b865e817339ebc Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Fri, 11 Feb 2022 13:58:19 +0100 Subject: [PATCH] [bash] Fixup rewrite hostname colouring --- bash/bashrc.d/prompt_command.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bash/bashrc.d/prompt_command.bash b/bash/bashrc.d/prompt_command.bash index 8c6e3ee..409e1d4 100644 --- a/bash/bashrc.d/prompt_command.bash +++ b/bash/bashrc.d/prompt_command.bash @@ -71,7 +71,6 @@ function __PS1_hostname() { case "${HOST%%.*}" in 'locksmith') PS1+="${Pur}\h${RCol}";; 'bladesmith') PS1+="${Yel}\h${RCol}";; - 'gunsmith') PS1+="${Red}\h${RCol}";; 'goldsmith') PS1+="${IYel}\h${RCol}";; *) NOMATCH=1;; esac @@ -82,7 +81,7 @@ function __PS1_hostname() { fi # extended colouring - if [ -z "${NOMATCH}" ]; then + if [ -n "${NOMATCH}" ]; then PS1+="${NOMATCH}" # default colouring else