aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-06 18:31:30 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-06 18:31:30 +0300
commitf788f6b4bddc73b1795a435a977a83dc94d998e9 (patch)
treeb0f298fe9d8a1bc3fb3362461824861bb73f6a21 /internal
parent44c479a819e97e72f05284dfe4c7615d2b2f5f46 (diff)
asdf: replace "-" with "_" when converting to upper case
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index f39dd904..f53b0ad3 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4608,7 +4608,7 @@ function prompt_asdf() {
local -A versions
local plugin
for plugin in $_p9k_asdf_plugins; do
- local var=ASDF_${(U)plugin}_VERSION
+ local var=ASDF_${(U)plugin//-/_}_VERSION
local val="${(P)var}"
[[ -n $val ]] && versions[$plugin]=$val
done
@@ -4689,7 +4689,7 @@ function prompt_asdf() {
local plugin version
for plugin version in ${(kv)versions}; do
- local upper=${(U)plugin}
+ local upper=${(U)plugin//-/_}
_p9k_get_icon $0_$upper ${upper}_ICON $plugin
_p9k_prompt_segment $0_$upper green $_p9k_color1 $'\1'$_p9k_ret 0 '' ${version//\%/%%}
done