mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge branch 'fix-pw3nage-exploit' of https://github.com/belak/powerlevel9k into belak-fix-pw3nage-exploit
This commit is contained in:
commit
ae259ff594
1 changed files with 5 additions and 5 deletions
|
@ -1282,8 +1282,8 @@ powerlevel9k_prepare_prompts() {
|
||||||
_P9K_TIMER_START=99999999999
|
_P9K_TIMER_START=99999999999
|
||||||
|
|
||||||
if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
|
if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
|
||||||
PROMPT="$(print_icon 'MULTILINE_FIRST_PROMPT_PREFIX')%f%b%k$(build_left_prompt)
|
PROMPT='$(print_icon 'MULTILINE_FIRST_PROMPT_PREFIX')%f%b%k$(build_left_prompt)
|
||||||
$(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
|
$(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')'
|
||||||
if [[ "$POWERLEVEL9K_RPROMPT_ON_NEWLINE" != true ]]; then
|
if [[ "$POWERLEVEL9K_RPROMPT_ON_NEWLINE" != true ]]; then
|
||||||
# The right prompt should be on the same line as the first line of the left
|
# The right prompt should be on the same line as the first line of the left
|
||||||
# prompt. To do so, there is just a quite ugly workaround: Before zsh draws
|
# prompt. To do so, there is just a quite ugly workaround: Before zsh draws
|
||||||
|
@ -1298,13 +1298,13 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
|
||||||
RPROMPT_SUFFIX=''
|
RPROMPT_SUFFIX=''
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
PROMPT="%f%b%k$(build_left_prompt)"
|
PROMPT='%f%b%k$(build_left_prompt)'
|
||||||
RPROMPT_PREFIX=''
|
RPROMPT_PREFIX=''
|
||||||
RPROMPT_SUFFIX=''
|
RPROMPT_SUFFIX=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
|
if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
|
||||||
RPROMPT="$RPROMPT_PREFIX%f%b%k$(build_right_prompt)%{$reset_color%}$RPROMPT_SUFFIX"
|
RPROMPT='$RPROMPT_PREFIX%f%b%k$(build_right_prompt)%{$reset_color%}$RPROMPT_SUFFIX'
|
||||||
fi
|
fi
|
||||||
NEWLINE='
|
NEWLINE='
|
||||||
'
|
'
|
||||||
|
|
Loading…
Reference in a new issue