aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-12 13:16:03 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-12 13:16:03 +0300
commit3ca90731b0cc9f935c11f0f8fe3b2a72622712bf (patch)
treef60d21c599bb6cda7da4dc240f35c8702d126c7d /internal
parentd71d1409c45586489eec1c7cd0823b8ffed04cc9 (diff)
make SHOW_ON_COMMAND work with legacy custom prompts; see #488
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
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"
}
################################################################