From b83c9f5127314f32f0033ff30755ea9c8f8299bd Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 5 Feb 2019 22:26:39 +0100 Subject: [PATCH] Themes: Use "%B" only in combination with "%b" Don't mix "${fg_no_bold[]}", "%B", and "$reset_color". This can lead to unexpected results and garbled output. --- themes/ax.axzshtheme | 4 ++-- themes/debian.axzshtheme | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/ax.axzshtheme b/themes/ax.axzshtheme index b04dc4a..93eb88a 100644 --- a/themes/ax.axzshtheme +++ b/themes/ax.axzshtheme @@ -4,8 +4,8 @@ ZSH_THEME_VCS_PROMPT_PREFIX_SPACING="(" ZSH_THEME_PROMPT_PREFIX_SPACING=" " -ZSH_THEME_PROMPT_PREFIX="%{$fg_no_bold[green]%}%B" -ZSH_THEME_PROMPT_ROOT_PREFIX="%{$fg_no_bold[red]%}%B" +ZSH_THEME_PROMPT_PREFIX="%{$fg_bold[green]%}" +ZSH_THEME_PROMPT_ROOT_PREFIX="%{$fg_bold[red]%}" ZSH_THEME_PROMPT_SUFFIX="%b%{$reset_color%}" ZSH_THEME_PROMPT_SUFFIX_SPACING=" " diff --git a/themes/debian.axzshtheme b/themes/debian.axzshtheme index dd88c06..b16c497 100644 --- a/themes/debian.axzshtheme +++ b/themes/debian.axzshtheme @@ -3,4 +3,4 @@ ZSH_THEME_PROMPT_SUFFIX_SPACING=" " -PS1="%{$fg_no_bold[green]%}%B%n@%m%{$reset_color%}:%{$fg_no_bold[blue]%}%B%~%{$reset_color%}"'$(ax_vcs_prompt)'"$(ax_prompt)" +PS1="%{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%~%{$reset_color%}"'$(ax_vcs_prompt)'"$(ax_prompt)" -- 2.39.2