aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-31 14:03:17 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-31 14:03:17 +0300
commit0c0641d5798ab2985f1fc091336779a0c8c80fd1 (patch)
tree72ea19f5c949a2d18a41a6974e5f66674b975026 /internal/p10k.zsh
parent98cd3a0b4bd3c7990c6c4075e239ebe890db0c5c (diff)
add a teardown hook for zplugin
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index b37fa2d0..4059bd87 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4329,6 +4329,9 @@ prompt_powerlevel9k_teardown() {
fi
}
+# Hook for zplugin.
+powerlevel10k_plugin_unload() { prompt_powerlevel9k_teardown; }
+
autoload -Uz colors && colors
autoload -Uz add-zsh-hook