aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-11 16:29:47 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-11 16:29:47 +0300
commit05eaf8162c0a83c38bb210e888358d5bdc3aef90 (patch)
treee9fac65061737280d1c182cd9ca81f81399d6c51 /internal/p10k.zsh
parentfb5a0a6cca8b628be8bb99d9394875b3c59eb233 (diff)
tweak omz update pattern; maybe it'll help with #729
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index f3c37a4d..aebd6a49 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6091,13 +6091,13 @@ function _p9k_clear_instant_prompt() {
local cr=$'\r'
local sp="${(%):-%b%k%f%s%u$mark${(pl.$fill.. .)}$cr%b%k%f%s%u%E}"
print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed]
- local unexpected=${${${(S)content//$'\e'*($'\a'|$'\e\\')}//$'\e[?'<->'c'}//$'\e['<->' q'}
+ local unexpected=${${${(S)content//$'\e]0;'[^$'\a\e']#($'\a'|$'\e\\')}//$'\e[?'<->'c'}//$'\e['<->' q'}
if [[ -n $unexpected ]]; then
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'
local omz4='There was an error updating. Try again later?'
- if [[ -n ${${unexpected/$omz1}/$omz2*($omz3|$omz4)[^$'\n']#($'\n'|)} ]]; then
+ if [[ $unexpected != ($omz1|)$omz2*($omz3|$omz4)[^$'\n']#($'\n'|) ]]; then
echo -E - ""
echo -E - "${(%):-[%3FWARNING%f]: Console output during zsh initialization detected.}"
echo -E - ""