aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-06 18:31:49 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-06 18:31:49 +0300
commite67c2fa9f71f1140174708f0dc2b51d5571aa38f (patch)
treecec93cfb77f4ffcca45812d20b35c7026056a61e
parent5bf5121c7ec4a3c3208291d6aabebdad7ca2b72e (diff)
fix prompt char color in transient prompt preview for Pure
-rwxr-xr-xinternal/wizard.zsh8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index e0adc158..523d56d8 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1265,6 +1265,8 @@ function ask_instant_prompt() {
function ask_transient_prompt() {
local disable_rprompt=$((num_lines == 1))
+ local prompt_char='%76F❯%f'
+ [[ $style == pure ]] && prompt_char='%5F❯%f'
while true; do
clear
flowing -c "%BEnable Transient Prompt?%b"
@@ -1272,13 +1274,13 @@ function ask_transient_prompt() {
print -P "%B(y) Yes.%b"
if (( LINES >= 25 || num_lines == 1 )); then
print -P ""
- print -P "${(pl:$prompt_indent:: :)}%76F❯%f %2Fgit%f pull"
+ print -P "${(pl:$prompt_indent:: :)}$prompt_char %2Fgit%f pull"
elif (( LINES < 23 )); then
print -P ""
else
- print -P "${(pl:$prompt_indent:: :)}%76F❯%f %2Fgit%f pull"
+ print -P "${(pl:$prompt_indent:: :)}$prompt_char %2Fgit%f pull"
fi
- print -P "${(pl:$prompt_indent:: :)}%76F❯%f %2Fgit%f branch x"
+ print -P "${(pl:$prompt_indent:: :)}$prompt_char %2Fgit%f branch x"
(( empty_line )) && echo
buffer="%2Fgit%f checkout x█" print_prompt
print -P ""