mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
don't print instant prompt warning when omz update fails
This commit is contained in:
parent
be5c067125
commit
c0ff47bea5
1 changed files with 2 additions and 1 deletions
|
@ -6061,7 +6061,8 @@ function _p9k_clear_instant_prompt() {
|
||||||
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
|
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
|
||||||
local omz2='Updating Oh My Zsh'
|
local omz2='Updating Oh My Zsh'
|
||||||
local omz3='https://shop.planetargon.com/collections/oh-my-zsh'
|
local omz3='https://shop.planetargon.com/collections/oh-my-zsh'
|
||||||
if [[ -n ${${unexpected/$omz1}/$omz2*$omz3($'\n'|)} ]]; then
|
local omz4='There was an error updating. Try again later?'
|
||||||
|
if [[ -n ${${unexpected/$omz1}/$omz2*($omz3|$omz4)[^$'\n']#($'\n'|)} ]]; then
|
||||||
echo -E - ""
|
echo -E - ""
|
||||||
echo -E - "${(%):-[%3FWARNING%f]: Console output during zsh initialization detected.}"
|
echo -E - "${(%):-[%3FWARNING%f]: Console output during zsh initialization detected.}"
|
||||||
echo -E - ""
|
echo -E - ""
|
||||||
|
|
Loading…
Reference in a new issue