aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristian Höltje <docwhat@gerf.org>2017-05-04 09:44:37 +0300
committerChristian Höltje <docwhat@gerf.org>2017-05-13 05:14:01 +0300
commit161c995625fc655eb3228a88f5ce1ad79fd1ede0 (patch)
tree1d7f58b908ac517405a4758eb12100d675d8457c /powerlevel9k.zsh-theme
parent1619c74ad8aff47383989efadc1e4553a83cf4de (diff)
newline: can't work with right side
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 2 insertions, 4 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 83c5966e..bcce12f4 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -339,17 +339,15 @@ prompt_background_jobs() {
# A newline in your prompt, so you can segments on multiple lines.
prompt_newline() {
- local lws rws
+ local lws
+ [[ "$1" == "right" ]] && return
lws=$POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS
- rws=$POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=
- POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS=
"$1_prompt_segment" \
"$0" \
"$2" \
"NONE" "NONE" $'\n'
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=$lws
- POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS=$rws
}
# Segment that indicates usage level of current partition.