]> arthur.barton.de Git - ax-zsh.git/commitdiff
Themes: Use "%B" only in combination with "%b"
authorAlexander Barton <alex@barton.de>
Tue, 5 Feb 2019 21:26:39 +0000 (22:26 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 5 Feb 2019 21:26:39 +0000 (22:26 +0100)
Don't mix "${fg_no_bold[]}", "%B", and "$reset_color". This can lead to
unexpected results and garbled output.

themes/ax.axzshtheme
themes/debian.axzshtheme

index b04dc4add0abe7b916e0a4ce5c5b57e3f0ae6a88..93eb88a0529b263f771504be8bd32c11eb111760 100644 (file)
@@ -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=" "
 
index dd88c06f1bd78dda9c4e1bebfce3ae2c9a0b8240..b16c4975910ec0fc882af5de071f7ca28352c680 100644 (file)
@@ -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)"