aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-13 22:21:43 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-13 22:21:43 +0300
commit5ffc8f881c36b718758e8e15fd24a1d7d6df7053 (patch)
treea70b6801411bb9b3a613e4b44772be92879054d5 /powerlevel9k.zsh-theme
parent8de106d0e39131ac85529337c3d6cd02f3661e16 (diff)
better init
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme14
1 files changed, 7 insertions, 7 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 7aef2e16..523d42c8 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -2210,15 +2210,10 @@ _p9k_init() {
typeset -gi _P9K_ENABLED=0
prompt_powerlevel9k_setup() {
- emulate -L zsh
+ setopt noprompt{bang,subst} prompt{cr,percent,sp}
prompt_powerlevel9k_teardown
- autoload -U colors && colors
- autoload -Uz add-zsh-hook
- zmodload zsh/datetime
- zmodload zsh/mathfunc
-
add-zsh-hook precmd powerlevel9k_prepare_prompts
add-zsh-hook preexec powerlevel9k_preexec
@@ -2235,5 +2230,10 @@ prompt_powerlevel9k_teardown() {
_P9K_ENABLED=0
}
-setopt noprompt{bang,subst} prompt{cr,percent,sp}
+autoload -U colors && colors
+autoload -Uz add-zsh-hook
+
+zmodload zsh/datetime
+zmodload zsh/mathfunc
+
prompt_powerlevel9k_setup "$@"