mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge remote-tracking branch 'dritter/dritter/disable_rprompt'
Allows disabling of the right prompt Conflicts: powerlevel9k.zsh-theme
This commit is contained in:
commit
c37e4a8fa0
2 changed files with 11 additions and 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)
|
||||
|
@ -360,6 +361,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`
|
||||
|
|
|
@ -644,7 +644,10 @@ $POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX"
|
|||
RPROMPT_PREFIX=''
|
||||
RPROMPT_SUFFIX=''
|
||||
fi
|
||||
|
||||
if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
|
||||
RPROMPT=$RPROMPT_PREFIX"%{%f%b%k%}"'$(build_right_prompt)'"%{$reset_color%}"$RPROMPT_SUFFIX
|
||||
fi
|
||||
}
|
||||
|
||||
powerlevel9k_init "$@"
|
||||
|
|
Loading…
Reference in a new issue