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

move default prompt definitions to the top

This commit is contained in:
romkatv 2019-02-28 18:21:09 +01:00
parent 0b56d123ec
commit 9d7aa4e530

View file

@ -69,6 +69,9 @@ source "${p9k_directory}/functions/vcs.zsh"
# cleanup temporary variables.
unset p9k_directory
[[ -v POWERLEVEL9K_LEFT_PROMPT_ELEMENTS ]] || POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
[[ -v POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS ]] || POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
################################################################
# Color Scheme
################################################################
@ -2136,9 +2139,6 @@ prompt_powerlevel9k_setup() {
fi
fi
defined POWERLEVEL9K_LEFT_PROMPT_ELEMENTS || POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
defined POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS || POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
# Display a warning if deprecated segments are in use.
typeset -AH deprecated_segments
# old => new