Skip to content

Commit 751a47c

Browse files
committed
A pickier default right prompt
1 parent 7394171 commit 751a47c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,22 +184,22 @@ If you would like to customize the prompt colors, change any of the `AGKOZAK_COL
184184
AGKOZAK_COLORS_BRANCH_STATUS=yellow
185185

186186
## Custom Prompts
187-
If you would like to make further customizations to your prompt, you may use the variables `AGKOZAK_CUSTOM_PROMPT` and `AGKOZAK_CUSTOM_RPROMPT` to specify the exact strings to be used for the left and right prompts. The default prompts, with the default colors, are
187+
If you would like to make further customizations to your prompt, you may use the variables `AGKOZAK_CUSTOM_PROMPT` and `AGKOZAK_CUSTOM_RPROMPT` to specify the exact strings to be used for the left and right prompts. The default prompts, with the default settings, are
188188

189189
PROMPT='%(?..%B%F{red}(%?%)%f%b )'
190190
PROMPT+='%(!.%S%B.%B%F{green})%n%1v%(!.%b%s.%f%b) '
191191
PROMPT+=$'%B%F{blue}%2v%f%b\n'
192192
PROMPT+='$(_agkozak_vi_mode_indicator) '
193-
194-
RPROMPT='%F{yellow}%3v%f'
193+
194+
RPROMPT='%(3V.%F{yellow}%3v%f.)'
195195

196196
If, for example, you would like to move the Git information into the left prompt (eliminating the right prompt entirely) and to make the Git information your favorite shade of grey, you may include the following in your `.zshrc`:
197197

198198
AGKOZAK_CUSTOM_PROMPT='%(?..%B%F{red}(%?%)%f%b )'
199199
AGKOZAK_CUSTOM_PROMPT+='%(!.%S%B.%B%F{green})%n%1v%(!.%b%s.%f%b) '
200200
AGKOZAK_CUSTOM_PROMPT+=$'%B%F{blue}%2v%f%b%(3V.%F{243}%3v%f.)\n'
201201
AGKOZAK_CUSTOM_PROMPT+='$(_agkozak_vi_mode_indicator) '
202-
202+
203203
AGKOZAK_CUSTOM_RPROMPT=''
204204

205205
## Asynchronous Methods

agkozak-zsh-theme.plugin.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ agkozak_zsh_theme() {
571571
RPROMPT="${AGKOZAK_CUSTOM_RPROMPT}"
572572
else
573573
# The color right prompt
574-
typeset -g RPROMPT='%F{${AGKOZAK_COLORS_BRANCH_STATUS}}%3v%f'
574+
typeset -g RPROMPT='%(3V.%F{${AGKOZAK_COLORS_BRANCH_STATUS}}%3v%f.)'
575575

576576
AGKOZAK_CUSTOM_RPROMPT=${RPROMPT}
577577
fi

0 commit comments

Comments
 (0)