From 600f170d00e96e9e227693760df50d186c99877d Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 27 May 2026 14:06:26 +0200 Subject: [PATCH] add error situation preview --- profile.d/prompt.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/profile.d/prompt.sh b/profile.d/prompt.sh index 58da701..f913079 100644 --- a/profile.d/prompt.sh +++ b/profile.d/prompt.sh @@ -405,13 +405,20 @@ set_theme() } printf "Preview for theme '%s':\n" "$theme_name" - printf "%b [ 13:37:00 ] %b%b [ 0 %b• (5s) %b ] %b user@host%b [ git:main +1/-0 ] %b\n" \ + printf "%b [ 13:37:00 ] %b%b [ 0 %b• (5s) %b] %b user@host%b [ git:main +1/-0 ] %b\n" \ "${PROMPT_COLOR_TIME_FG:-}${PROMPT_COLOR_TIME_BG:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_OK_FG:-}${PROMPT_COLOR_BAR_BG:-}" \ "${PROMPT_COLOR_OK_MARK:-}${PROMPT_COLOR_BAR_BG:-}" \ "${PROMPT_COLOR_OK_FG:-}${PROMPT_COLOR_BAR_BG:-}" \ "${PROMPT_COLOR_USER_FG:-}${PROMPT_COLOR_BAR_BG:-}" \ "${PROMPT_COLOR_CTX_FG:-}${PROMPT_COLOR_BAR_BG:-}" "${DEFAULTCOL:-}" + printf "%b [ 13:37:00 ] %b%b [ 0 %b• (5s) %b] %b user@host%b [ git:main +1/-0 ] %b\n" \ + "${PROMPT_COLOR_TIME_FG:-}${PROMPT_COLOR_TIME_BG:-}" "${DEFAULTCOL:-}" \ + "${PROMPT_COLOR_OK_FG:-}${PROMPT_COLOR_ERR_BG:-}" \ + "${PROMPT_COLOR_ERR_MARK:-}${PROMPT_COLOR_ERR_BG:-}" \ + "${PROMPT_COLOR_OK_FG:-}${PROMPT_COLOR_ERR_BG:-}" \ + "${PROMPT_COLOR_USER_FG:-}${PROMPT_COLOR_BAR_BG:-}" \ + "${PROMPT_COLOR_CTX_FG:-}${PROMPT_COLOR_BAR_BG:-}" "${DEFAULTCOL:-}" printf "%b/path/to/dir \$ %b\n" \ "${PROMPT_COLOR_DIR_FG:-}" "${DEFAULTCOL:-}"