aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-27 09:53:28 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-27 09:53:28 +0300
commite4d78d2a722c3d81a48d6eab4edc858c28fbf35f (patch)
treeae89cb1e622b29814838375c038a8a07acd2afcd /internal/p10k.zsh
parent613b1a646eae3deb964d7d69aa986c78a5986542 (diff)
fix custom prompt when the command is just one word; fixes #189
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index afacf703..cff575b0 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1142,7 +1142,7 @@ _p9k_custom_prompt() {
local segment_name=${1:u}
local command=POWERLEVEL9K_CUSTOM_${segment_name}
command=${(P)command}
- local cmd="${(Q)${(z)command}[1]}"
+ local cmd="${(Q)${(Az)command}[1]}"
(( $+functions[$cmd] || $+commands[$cmd] )) || return
local content="$(eval $command)"
[[ -n $content ]] || return