don't print instant prompt warning when omz update fails

pull/778/head
romkatv 5 years ago
parent be5c067125
commit c0ff47bea5

@ -6061,7 +6061,8 @@ function _p9k_clear_instant_prompt() {
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
local omz2='Updating 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 - "${(%):-[%3FWARNING%f]: Console output during zsh initialization detected.}"
echo -E - ""

Loading…
Cancel
Save