From f040cb3ce495ab0a39a56450086ae64623424fcc Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 31 Aug 2022 16:28:35 +0200 Subject: [PATCH] feat(dotmatrix): handle SSH colors --- themes/dotmatrix/dotmatrix.theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/dotmatrix/dotmatrix.theme b/themes/dotmatrix/dotmatrix.theme index 73d71ab..9418637 100644 --- a/themes/dotmatrix/dotmatrix.theme +++ b/themes/dotmatrix/dotmatrix.theme @@ -402,6 +402,7 @@ _lp_dotmatrix_theme_prompt() { inline+="${DOTMATRIX_ITEMS[open_idx]}${DOTMATRIX_SPACE_LINE}${lp_aws_profile}${DOTMATRIX_SPACE_LINE}${DOTMATRIX_ITEMS[close_idx]}" fi + if ((DOTMATRIX_ENABLE_GRADIENT_LINE)); then # Fill up the center section with a line colored as a gradient. local ret @@ -611,7 +612,8 @@ __dotmatrix_activate_hostname() { if _lp_hostname; then case "$lp_connection" in ssh) - hostname="${lp_hostname}" + (( LP_ENABLE_SSH_COLORS )) && LP_COLOR_SSH="$LP_COLOR_HOST_HASH" + hostname="${LP_COLOR_SSH}${lp_hostname}" ;; tel) hostname="${lp_hostname}"