mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
more robust detection of clear and reset commands; see #545
This commit is contained in:
parent
3f470b2d7d
commit
dfa377b1b9
@ -6204,7 +6204,7 @@ _p9k_precmd_impl() {
|
|||||||
fi
|
fi
|
||||||
_p9k_save_status
|
_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__status == 0 ]]; then
|
||||||
P9K_TTY=new
|
P9K_TTY=new
|
||||||
elif [[ $P9K_TTY == new && $_p9k__fully_initialized == 1 ]] && ! zle; then
|
elif [[ $P9K_TTY == new && $_p9k__fully_initialized == 1 ]] && ! zle; then
|
||||||
|
Loading…
Reference in New Issue
Block a user