From 7ab85fbfc368a60c6224e69ce9655925e3ab8e8e Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 24 Oct 2019 18:01:44 +0200 Subject: [PATCH] bug fix: unset _p9k_preinit when tearing down --- internal/p10k.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 1eb5d8a2..4fd73c89 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5164,6 +5164,7 @@ _p9k_init() { } _p9k_deinit() { + (( $+functions[_p9k_preinit] )) && unfunction _p9k_preinit (( $+functions[gitstatus_stop] )) && gitstatus_stop POWERLEVEL9K _p9k_deinit_async_pump (( _p9k_dump_pid )) && wait $_p9k_dump_pid 2>/dev/null