mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
make SHOW_ON_COMMAND work with legacy custom prompts; see #488
This commit is contained in:
parent
d71d1409c4
commit
3ca90731b0
1 changed files with 1 additions and 1 deletions
|
@ -1597,7 +1597,7 @@ _p9k_custom_prompt() {
|
||||||
(( $+functions[$cmd] || $+commands[$cmd] )) || return
|
(( $+functions[$cmd] || $+commands[$cmd] )) || return
|
||||||
local content="$(eval $command)"
|
local content="$(eval $command)"
|
||||||
[[ -n $content ]] || return
|
[[ -n $content ]] || return
|
||||||
_p9k_prompt_segment "prompt_custom_$segment_name" $_p9k_color2 $_p9k_color1 "CUSTOM_${segment_name}_ICON" 0 '' "$content"
|
_p9k_prompt_segment "prompt_custom_$1" $_p9k_color2 $_p9k_color1 "CUSTOM_${segment_name}_ICON" 0 '' "$content"
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
Loading…
Reference in a new issue