aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-05-23 23:23:38 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-05-23 23:23:38 +0300
commit16856268b373692a63296af3ffabd7e1fd530dd9 (patch)
treedd2db8d419447e0ef1e2452d286a14d136d764a9 /powerlevel9k.zsh-theme
parentdca6b2908947873f31c9d8c63bf0caae8c13e826 (diff)
Cleaned indentation.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme28
1 files changed, 14 insertions, 14 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 7ad3e49f..c45e5542 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -144,11 +144,11 @@ left_prompt_segment() {
# local BG_COLOR_MODIFIER=${(P)POWERLEVEL9K_${(U)1#prompt_}_BACKGROUND}
# Overwrite given background-color by user defined variable for this segment.
- # We get as first Parameter the function name, which called this function.
- # From the given function name, we strip the "prompt_"-prefix and uppercase it.
- # This is, prefixed with "POWERLEVEL9K_" and suffixed with either "_BACKGROUND"
- # of "_FOREGROUND", our variable name. So each new Segment should automatically
- # be overwritable by a variable following this naming convention.
+ # We get as first Parameter the function name, which called this function.
+ # From the given function name, we strip the "prompt_"-prefix and uppercase it.
+ # This is, prefixed with "POWERLEVEL9K_" and suffixed with either "_BACKGROUND"
+ # of "_FOREGROUND", our variable name. So each new Segment should automatically
+ # be overwritable by a variable following this naming convention.
local BACKGROUND_USER_VARIABLE=POWERLEVEL9K_${(U)1#prompt_}_BACKGROUND
local BG_COLOR_MODIFIER=${(P)BACKGROUND_USER_VARIABLE}
[[ -n $BG_COLOR_MODIFIER ]] && 2=$BG_COLOR_MODIFIER
@@ -281,15 +281,15 @@ function +vi-git-stash() {
}
function +vi-hg-bookmarks() {
- if [[ -n "${hgbmarks[@]}" ]]; then
- hook_com[hg-bookmark-string]=" ☿ ${hgbmarks[@]}"
-
- # And to signal, that we want to use the sting we just generated,
- # set the special variable `ret' to something other than the default
- # zero:
- ret=1
- return 0
- fi
+ if [[ -n "${hgbmarks[@]}" ]]; then
+ hook_com[hg-bookmark-string]=" ☿ ${hgbmarks[@]}"
+
+ # And to signal, that we want to use the sting we just generated,
+ # set the special variable `ret' to something other than the default
+ # zero:
+ ret=1
+ return 0
+ fi
}
function +vi-vcs-detect-changes() {