summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2015-07-27 02:22:29 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-07-27 02:22:29 +0300
commitc37e4a8fa0e02ed7406dfbbfdaadc4bb103393d5 (patch)
tree70ff078bc977805a5b35f32e26444a7df3dd5c4d /powerlevel9k.zsh-theme
parent961598e66bf43bedb89bc8e60919461a38fdf98c (diff)
parent188970f11e5d9b37962bd97a8fd54386979bc38b (diff)
Merge remote-tracking branch 'dritter/dritter/disable_rprompt'
Allows disabling of the right prompt Conflicts: powerlevel9k.zsh-theme
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme5
1 files changed, 4 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index a7742b75..1b52d038 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -644,7 +644,10 @@ $POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX"
RPROMPT_PREFIX=''
RPROMPT_SUFFIX=''
fi
- RPROMPT=$RPROMPT_PREFIX"%{%f%b%k%}"'$(build_right_prompt)'"%{$reset_color%}"$RPROMPT_SUFFIX
+
+ if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
+ RPROMPT=$RPROMPT_PREFIX"%{%f%b%k%}"'$(build_right_prompt)'"%{$reset_color%}"$RPROMPT_SUFFIX
+ fi
}
powerlevel9k_init "$@"