diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-06-01 09:48:48 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-06-01 09:48:48 +0300 |
commit | 2f80b186b49182e10e53bd3fa318914c3ac5a17f (patch) | |
tree | eba253eccb00ddfab311b529a26ae101ee86710b | |
parent | 913dfb37f73da99d4f890b4820a4a40530ef2c2b (diff) |
quote prompt content with (qqq) instead of (q); the latter breaks on double quotes
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 98e6ef04..1fffa5ce 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -263,7 +263,7 @@ left_prompt_segment() { _p9k_escape_rcurly $fg local content="${(j::):-$_P9K_RETVAL${^@}}" - (( expand )) || content="\${(Q)\${:-${(q)content}}}" + (( expand )) || content="\${(Q)\${:-${(qqq)content}}}" _P9K_PROMPT+="\${\${:-$cond}:+\${\${:-\${_P9K_C::=${content}}${_P9K_CACHE_VAL[3]}" (( has_icon )) && _P9K_PROMPT+="\${\${\${#_P9K_C}:#$(($# * $#fg))}:+ }" @@ -338,7 +338,7 @@ right_prompt_segment() { _p9k_escape_rcurly $fg local content="${(j::):-$_P9K_RETVAL${^@}}" - (( expand )) || content="\${(Q)\${:-${(q)content}}}" + (( expand )) || content="\${(Q)\${:-${(qqq)content}}}" _P9K_PROMPT+="\${\${:-$cond}:+\${\${:-\${_P9K_C::=${content}}${_P9K_CACHE_VAL[3]}" (( has_icon )) && _P9K_PROMPT+="\${\${\${#_P9K_C}:#$(($# * $#fg))}:+ }" |