From: Alexander Barton Date: Tue, 5 Feb 2019 21:26:39 +0000 (+0100) Subject: Themes: Use "%B" only in combination with "%b" X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=b83c9f5127314f32f0033ff30755ea9c8f8299bd 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. --- 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)"