diff options
author | Christian Höltje <docwhat@gerf.org> | 2017-05-04 09:20:29 +0300 |
---|---|---|
committer | Christian Höltje <docwhat@gerf.org> | 2017-05-13 05:15:26 +0300 |
commit | feb942d4536004ecc862d6c6447599359b64c96a (patch) | |
tree | 0c1a9da0c1a92efd52e7fa772ff2a981cc42dc78 | |
parent | 0b2483cf6d3f778413c16b6985ff6c02dcdd1f34 (diff) |
add function to disable powerlevel9k
Sometimes you have to disable your prompt. :-(
-rwxr-xr-x | powerlevel9k.zsh-theme | 5 |
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 "$@" |