aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme5
1 files changed, 2 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index a7636fc7..3f6da331 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -2255,10 +2255,10 @@ _p9k_init() {
typeset -gi _P9K_ENABLED=0
prompt_powerlevel9k_setup() {
- setopt nopromptbang prompt{cr,percent,sp,subst}
-
prompt_powerlevel9k_teardown
+ setopt nopromptbang prompt{cr,percent,sp,subst}
+
add-zsh-hook precmd powerlevel9k_prepare_prompts
add-zsh-hook preexec powerlevel9k_preexec
@@ -2267,7 +2267,6 @@ prompt_powerlevel9k_setup() {
}
prompt_powerlevel9k_teardown() {
- emulate -L zsh
add-zsh-hook -D precmd powerlevel9k_\*
add-zsh-hook -D preexec powerlevel9k_\*
PROMPT='%m%# '