summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2017-05-04 09:20:29 +0300
committerChristian Höltje <docwhat@gerf.org>2017-05-13 05:15:26 +0300
commitfeb942d4536004ecc862d6c6447599359b64c96a (patch)
tree0c1a9da0c1a92efd52e7fa772ff2a981cc42dc78 /powerlevel9k.zsh-theme
parent0b2483cf6d3f778413c16b6985ff6c02dcdd1f34 (diff)
add function to disable powerlevel9k
Sometimes you have to disable your prompt. :-(
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme5
1 files changed, 5 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 2d664911..ab7ec346 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1412,4 +1412,9 @@ prompt_powerlevel9k_setup() {
add-zsh-hook preexec powerlevel9k_preexec
}
+prompt_powerlevel9k_teardown() {
+ add-zsh-hook -D precmd powerlevel9k_\*
+ add-zsh-hook -D preexec powerlevel9k_\*
+}
+
prompt_powerlevel9k_setup "$@"