[bash] Leave empty if no hostname colouring

This commit is contained in:
Eric Teunis de Boone 2022-03-21 22:04:15 +01:00
parent 89463a215a
commit 6e86021e78
1 changed files with 2 additions and 0 deletions

View File

@ -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