From dfa377b1b9f71010efb0aeaf62574bed24677a29 Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 5 Mar 2020 19:45:45 +0100 Subject: [PATCH] more robust detection of clear and reset commands; see #545 --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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