diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-03-05 21:45:45 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-03-05 21:45:45 +0300 |
commit | dfa377b1b9f71010efb0aeaf62574bed24677a29 (patch) | |
tree | dfaa39ac9871afd3ad147a56dc69f4c702244162 /internal/p10k.zsh | |
parent | 3f470b2d7d868ed5769387b3e0d7449bb4d46373 (diff) |
more robust detection of clear and reset commands; see #545
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index ac8917dc..2604c947 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6204,7 +6204,7 @@ _p9k_precmd_impl() { fi _p9k_save_status - if [[ $_p9k__preexec_cmd == [[:space:]]#(clear([[:space:]]##-[a-zA-Z-_]#)#|reset)[[:space:]]# && + if [[ $_p9k__preexec_cmd == [[:space:]]#(clear([[:space:]]##-(|x)(|T[a-zA-Z0-9-_\'\"]#))#|reset)[[:space:]]# && $_p9k__status == 0 ]]; then P9K_TTY=new elif [[ $P9K_TTY == new && $_p9k__fully_initialized == 1 ]] && ! zle; then |