aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-24 19:01:44 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-24 19:01:44 +0300
commit7ab85fbfc368a60c6224e69ce9655925e3ab8e8e (patch)
treeb5689b1eac1fc99794b6acb4b939ae4265e712da /internal/p10k.zsh
parentb91cba49aa7929ffa25d5abf39d31c403b7c549c (diff)
bug fix: unset _p9k_preinit when tearing down
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh1
1 files changed, 1 insertions, 0 deletions
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