1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

better init

This commit is contained in:
romkatv 2019-03-13 20:21:43 +01:00
parent 8de106d0e3
commit 5ffc8f881c

View file

@ -2210,15 +2210,10 @@ _p9k_init() {
typeset -gi _P9K_ENABLED=0 typeset -gi _P9K_ENABLED=0
prompt_powerlevel9k_setup() { prompt_powerlevel9k_setup() {
emulate -L zsh setopt noprompt{bang,subst} prompt{cr,percent,sp}
prompt_powerlevel9k_teardown 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 precmd powerlevel9k_prepare_prompts
add-zsh-hook preexec powerlevel9k_preexec add-zsh-hook preexec powerlevel9k_preexec
@ -2235,5 +2230,10 @@ prompt_powerlevel9k_teardown() {
_P9K_ENABLED=0 _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 "$@" prompt_powerlevel9k_setup "$@"