aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2016-01-08 22:34:45 +0300
committerDominik Ritter <dritter03@googlemail.com>2016-01-08 22:34:45 +0300
commitd0a76d721cf948eea72e2d452909f346af250c3d (patch)
treeb82573f35fd4380b891dc816e79bc5c7cdde0ffa /powerlevel9k.zsh-theme
parent642205a1a6244069c4b3165b7bc8cf032354e681 (diff)
Sorted segments alphabetically.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme16
1 files changed, 8 insertions, 8 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index efde41b3..b584edc9 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -289,14 +289,6 @@ prompt_aws() {
fi
}
-# The 'custom` prompt provides a way for users to invoke commands and display
-# the output in a segment.
-prompt_custom() {
- local command=POWERLEVEL9K_CUSTOM_$3:u
-
- "$1_prompt_segment" "${0}_${3:u}" "$2" $DEFAULT_COLOR_INVERTED $DEFAULT_COLOR "$(eval ${(P)command})"
-}
-
# Segment to indicate background jobs with an icon.
prompt_background_jobs() {
if [[ $(jobs -l | wc -l) -gt 0 ]]; then
@@ -407,6 +399,14 @@ prompt_context() {
fi
}
+# The 'custom` prompt provides a way for users to invoke commands and display
+# the output in a segment.
+prompt_custom() {
+ local command=POWERLEVEL9K_CUSTOM_$3:u
+
+ "$1_prompt_segment" "${0}_${3:u}" "$2" $DEFAULT_COLOR_INVERTED $DEFAULT_COLOR "$(eval ${(P)command})"
+}
+
# Dir: current working directory
prompt_dir() {
local current_path='%~'