18801e25d26c6a10c39e9ef9eeecd8921e9de4c7

Author
L.C. Karssen <lennart@karssen.org>
Committer
L.C. Karssen <lennart@karssen.org>
Date

Message

Shorter way of creating bold colours in a ZSH theme (applied to the avit theme).

Diff

 1diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
 2index 21478a354ac7385ac246ab52203d14085c1d7622..fc6b004557bc7043bc20039aa2922dd0a1b1be1d 100644
 3--- a/themes/avit.zsh-theme
 4+++ b/themes/avit.zsh-theme
 5@@ -8,8 +8,8 @@ PROMPT2='%{$fg[grey]%}◀%{$reset_color%} '
 6 
 7 RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(_git_time_since_commit) $(git_prompt_status) ${_return_status}%{$(echotc DO 1)%}'
 8 
 9-local _current_dir="%{$terminfo[bold]$fg[blue]%}%3~%{$reset_color%} "
10-local _return_status="%{$terminfo[bold]$fg[red]%}%(?..⍉)%{$reset_color%}"
11+local _current_dir="%{$fg_bold[blue]%}%3~%{$reset_color%} "
12+local _return_status="%{$fg_bold[red]%}%(?..⍉)%{$reset_color%}"
13 local _hist_no="%{$fg[grey]%}%h%{$reset_color%}"
14 
15 function _user_host() {