diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-05-19 10:00:42 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-05-19 10:00:42 +0300 |
commit | c0ff47bea59d58b027d546546509461812ae4cae (patch) | |
tree | 7ad69e6f80f13a7593f49041dd70b7fa76caed5a /internal/p10k.zsh | |
parent | be5c06712557408a5145d9dc5a20e19a54ba4011 (diff) |
don't print instant prompt warning when omz update fails
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 423ceb1f..5a980a3e 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -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 - "" |