summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-03-15 18:37:05 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-03-15 18:37:05 +0300
commit3153b33ade84b8d72c4883186cbf79c216058175 (patch)
tree37977f4699f828b40282f8b1cd97f102bbf3fde4
parent146d6cd2320b158fd30ed6fe1cd8616baa93ad3e (diff)
better quoting
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index bcbaca76..30952434 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -197,7 +197,7 @@ left_prompt_segment() {
_p9k_cache_set "$output" "$background_color"
fi
- _P9K_PROMPT+="${_P9K_CACHE_VAL[1]}${5//\$/\\$}${POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS}"
+ _P9K_PROMPT+="${_P9K_CACHE_VAL[1]}\${(Q)\${:-${(q)5}}}${POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS}"
_P9K_LAST_SEGMENT_INDEX=$2
_P9K_CURRENT_BG=$_P9K_CACHE_VAL[2]
}