mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-24 16:11:57 +00:00
work around bugs in zsh 5.3.1; fixes #651
This commit is contained in:
parent
8c84041ec7
commit
f7a3ec4172
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue