From e8dc33bb07780dcd5d3c8150196093b307622d25 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sat, 25 Jul 2015 11:22:24 +0200 Subject: [PATCH 1/2] Added possibility to disable the RPROMPT completly. --- powerlevel9k.zsh-theme | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 69eee6e3..715c24f6 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 } From 188970f11e5d9b37962bd97a8fd54386979bc38b Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sat, 25 Jul 2015 11:22:51 +0200 Subject: [PATCH 2/2] Added documentation for disable RPROMPT. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 71dfceb2..1cf3ff71 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ this theme focus on three primary goals: - [Symbols](#symbols) - [Styling](#styling) - [Double-Lined Prompt](#double-lined-prompt) + - [Disable Right Prompt](#disable-right-prompt) - [Light Color Theme](#light-color-theme) - [Segment Color Customization](#segment-color-customization) - [Special Segment Colors](#special-segment-colors) @@ -352,6 +353,12 @@ following variables in your `~/.zshrc`: POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="↱" POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="↳ " +#### Disable Right Prompt + +If you do not want a right prompt, you can disable it by setting: + + POWERLEVEL9K_DISABLE_RPROMPT=true + #### Light Color Theme If you prefer to use "light" colors, simply set `POWERLEVEL9K_COLOR_SCHEME`