aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 8d405991..1ae7a14f 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1575,7 +1575,8 @@ _p9k_custom_prompt() {
local segment_name=${1:u}
local command=_POWERLEVEL9K_CUSTOM_${segment_name}
command=${(P)command}
- local cmd="${(Q)${(Az)command}[1]}"
+ local parts=("${(@z)command}")
+ local cmd="${(Q)parts[1]}"
(( $+functions[$cmd] || $+commands[$cmd] )) || return
local content="$(eval $command)"
[[ -n $content ]] || return