From 3153b33ade84b8d72c4883186cbf79c216058175 Mon Sep 17 00:00:00 2001 From: romkatv Date: Fri, 15 Mar 2019 16:37:05 +0100 Subject: [PATCH] better quoting --- powerlevel9k.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] }