From 6e86021e78ae1acda483cdff70ea11b922385152 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Mon, 21 Mar 2022 22:04:15 +0100 Subject: [PATCH] [bash] Leave empty if no hostname colouring --- bash/bashrc.d/prompt_command.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash/bashrc.d/prompt_command.bash b/bash/bashrc.d/prompt_command.bash index 409e1d4..cc1a4ee 100644 --- a/bash/bashrc.d/prompt_command.bash +++ b/bash/bashrc.d/prompt_command.bash @@ -78,6 +78,8 @@ function __PS1_hostname() { if [ -n "${NOMATCH}" ]; then if [ x$(type -t "$func_extension") = xfunction ]; then NOMATCH=$($func_extension "$@") + else + NOMATCH="" fi # extended colouring