mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 09:50:06 +00:00
move default prompt definitions to the top
This commit is contained in:
parent
0b56d123ec
commit
9d7aa4e530
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue