1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-25 00:21:58 +00:00

short-circuit double sourcing of the theme

This commit is contained in:
romkatv 2019-10-24 18:02:57 +02:00
parent 7ab85fbfc3
commit a14d8e92dd

View file

@ -5183,6 +5183,8 @@ else
fi fi
prompt_powerlevel9k_setup() { prompt_powerlevel9k_setup() {
(( __p9k_enabled )) && return
prompt_opts=(percent subst) prompt_opts=(percent subst)
(( $+__p9k_instant_prompt_active )) || { (( $+__p9k_instant_prompt_active )) || {
[[ ! -o prompt_sp ]] || prompt_opts+=sp [[ ! -o prompt_sp ]] || prompt_opts+=sp