|
|
@ -4588,21 +4588,20 @@ function _p9k_asdf_init_meta() {
|
|
|
|
local plugin
|
|
|
|
local plugin
|
|
|
|
for plugin in $root/[^[:space:]]##(N); do
|
|
|
|
for plugin in $root/[^[:space:]]##(N); do
|
|
|
|
_p9k_asdf_plugins+=${plugin:t}
|
|
|
|
_p9k_asdf_plugins+=${plugin:t}
|
|
|
|
|
|
|
|
(( legacy_enabled )) || continue
|
|
|
|
if [[ ! -e $plugin/bin ]]; then
|
|
|
|
if [[ ! -e $plugin/bin ]]; then
|
|
|
|
files+=$plugin/bin
|
|
|
|
files+=$plugin/bin
|
|
|
|
else
|
|
|
|
else
|
|
|
|
local list_names=$plugin/bin/list-legacy-filenames
|
|
|
|
local list_names=$plugin/bin/list-legacy-filenames
|
|
|
|
files+=$list_names
|
|
|
|
files+=$list_names
|
|
|
|
if [[ -x $list_names ]]; then
|
|
|
|
if [[ -x $list_names ]]; then
|
|
|
|
local -i has_parse=0
|
|
|
|
|
|
|
|
if (( legacy_enabled )); then
|
|
|
|
|
|
|
|
local parse=$plugin/bin/parse-legacy-file
|
|
|
|
local parse=$plugin/bin/parse-legacy-file
|
|
|
|
|
|
|
|
local -i has_parse=0
|
|
|
|
files+=$parse
|
|
|
|
files+=$parse
|
|
|
|
[[ -x $parse ]] && has_parse=1
|
|
|
|
[[ -x $parse ]] && has_parse=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
local name
|
|
|
|
local name
|
|
|
|
for name in $($list_names 2>/dev/null); do
|
|
|
|
for name in $($list_names 2>/dev/null); do
|
|
|
|
[[ $name == (*/*|*:*|.tool-versions) ]] && continue
|
|
|
|
[[ $name == (*/*|.tool-versions) ]] && continue
|
|
|
|
_p9k_asdf_file_info[$name]+="${plugin:t} $has_parse "
|
|
|
|
_p9k_asdf_file_info[$name]+="${plugin:t} $has_parse "
|
|
|
|
done
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|