mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-19 22:11:57 +00:00
fix custom prompt when the command is just one word; fixes #189
This commit is contained in:
parent
613b1a646e
commit
e4d78d2a72
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue