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

Change powerlevel9k_init to prompt_powerlevel_setup

Changed init/setup function name to be compatible with zsh promptinit, zsh prompt function only lists themes with prompt_*_setup init/setup functions
This commit is contained in:
Owen McGill 2017-01-19 14:48:57 -07:00 committed by Ben Hilburn
parent e9af4aab4f
commit e2b2e8e173

View file

@ -1147,7 +1147,7 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
fi
}
powerlevel9k_init() {
prompt_powerlevel9k_setup() {
# Display a warning if the terminal does not support 256 colors
local term_colors
term_colors=$(echotc Co)
@ -1199,4 +1199,5 @@ powerlevel9k_init() {
add-zsh-hook precmd powerlevel9k_prepare_prompts
}
powerlevel9k_init "$@"
prompt_powerlevel9k_setup "$@"