From 05b8a335c91262707dde1b2a0c3e765facded3dd Mon Sep 17 00:00:00 2001 From: nojhan Date: Sun, 19 Nov 2023 14:06:50 +0100 Subject: [PATCH] fix(ssh): do not color ssh if not asked --- dotmatrix.theme | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dotmatrix.theme b/dotmatrix.theme index c6acfda..a645506 100644 --- a/dotmatrix.theme +++ b/dotmatrix.theme @@ -759,8 +759,12 @@ __dotmatrix_activate_hostname() { hostname="$lp_hostname" fi # If we want a different color for each host - (( LP_ENABLE_SSH_COLORS )) && LP_COLOR_SSH="$LP_COLOR_HOST_HASH" - hostname="${LP_COLOR_SSH}${hostname}" + if (( LP_ENABLE_SSH_COLORS )); then + LP_COLOR_SSH="$LP_COLOR_HOST_HASH" + hostname="${LP_COLOR_SSH}${hostname}" + else + hostname="${hostname}" + fi ;; tel) hostname="${lp_hostname}"