diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-04-23 19:47:41 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-04-23 19:47:41 +0300 |
commit | f7a3ec41725110ca93921ba90c0e62ab08dcaa50 (patch) | |
tree | 7c2d698ba345df6ef89cb78bb0f5c758e441b841 | |
parent | 8c84041ec76906b177bc5bc3f03206003305bcb3 (diff) |
work around bugs in zsh 5.3.1; fixes #651
-rw-r--r-- | internal/p10k.zsh | 3 |
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 |