summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-02-28 20:21:09 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-02-28 20:21:09 +0300
commit9d7aa4e5304a432ea2a11fff90c5093a340ec1e8 (patch)
tree8145e57584808706558ed220d3e33cd24c712d28
parent0b56d123ec3c88ee81178134c14c327cb8f86db1 (diff)
move default prompt definitions to the top
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 3 insertions, 3 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index c878c3d5..c128ae32 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -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