fixed preview

This commit is contained in:
fatalerrors
2026-05-27 11:59:27 +02:00
parent 2c81a48fe9
commit 8399adbfa0

View File

@@ -405,14 +405,15 @@ set_theme()
} }
printf "Preview for theme '%s':\n" "$theme_name" printf "Preview for theme '%s':\n" "$theme_name"
printf " %b13:37:00%b %b0%b %b•%b %buser%b@%bhost%b %b/path/to/dir%b %bgit:main +1/-0%b\n" \ printf "%b [ 13:37:00 ] %b%b [ 0 %b• (5s) %b ] %b user@host%b [ git:main +1/-0 ]\n%b" \
"${PROMPT_COLOR_TIME_FG:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_TIME_FG:-}${PROMPT_COLOR_TIME_BG:-}" "${DEFAULTCOL:-}" \
"${PROMPT_COLOR_OK_FG:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_OK_FG:-}${PROMPT_COLOR_BAR_BG:-}" \
"${PROMPT_COLOR_OK_MARK:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_OK_MARK:-}${PROMPT_COLOR_BAR_BG:-}" \
"${PROMPT_COLOR_USER_FG:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_OK_FG:-}${PROMPT_COLOR_BAR_BG:-}" \
"${PROMPT_COLOR_ROOT_FG:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_USER_FG:-}${PROMPT_COLOR_BAR_BG:-}" \
"${PROMPT_COLOR_DIR_FG:-}" "${DEFAULTCOL:-}" \ "${PROMPT_COLOR_CTX_FG:-}${PROMPT_COLOR_BAR_BG:-}" "${DEFAULTCOL:-}"
"${PROMPT_COLOR_CTX_FG:-}" "${DEFAULTCOL:-}" printf "%b/path/to/dir \$ %b\n" \
"${PROMPT_COLOR_DIR_FG:-}" "${DEFAULTCOL:-}"
set_colors set_colors
if [[ -n "$old_theme" ]]; then if [[ -n "$old_theme" ]]; then