mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
more robust detection of clear and reset commands; see #545
This commit is contained in:
parent
e302a9693e
commit
3f470b2d7d
1 changed files with 2 additions and 1 deletions
|
@ -6204,7 +6204,8 @@ _p9k_precmd_impl() {
|
|||
fi
|
||||
_p9k_save_status
|
||||
|
||||
if [[ $_p9k__preexec_cmd == (clear|reset) ]]; then
|
||||
if [[ $_p9k__preexec_cmd == [[:space:]]#(clear([[:space:]]##-[a-zA-Z-_]#)#|reset)[[:space:]]# &&
|
||||
$_p9k__status == 0 ]]; then
|
||||
P9K_TTY=new
|
||||
elif [[ $P9K_TTY == new && $_p9k__fully_initialized == 1 ]] && ! zle; then
|
||||
P9K_TTY=old
|
||||
|
|
Loading…
Reference in a new issue