diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-07-27 10:23:30 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-07-27 10:23:30 +0300 |
commit | 1b7240ca2fb2dd53b466c377f378c321e2c63cfd (patch) | |
tree | 77652d78663660897a920e0269279045dbff56f9 | |
parent | 504a64996b3da9ada36615b51026ba7033b3a47e (diff) | |
parent | c37e4a8fa0e02ed7406dfbbfdaadc4bb103393d5 (diff) |
Merge branch 'master' into dritter/os_detection
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | powerlevel9k.zsh-theme | 5 |
2 files changed, 11 insertions, 1 deletions
@@ -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) @@ -361,6 +362,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` diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 60e115e9..1ec3e0d4 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -682,7 +682,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 "$@" |