From 3ca90731b0cc9f935c11f0f8fe3b2a72622712bf Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 12 Feb 2020 11:16:03 +0100 Subject: [PATCH] make SHOW_ON_COMMAND work with legacy custom prompts; see #488 --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 19059777..63da1a2e 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1597,7 +1597,7 @@ _p9k_custom_prompt() { (( $+functions[$cmd] || $+commands[$cmd] )) || return local content="$(eval $command)" [[ -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" } ################################################################