Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions internal/completions/asdf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,8 @@ case "$subcmd" in
# After flag, complete with plugin name
_asdf__installed_plugins
else
# Complete with available versions for the plugin
local versions
if versions=$(asdf list all "${words[3]}" 2>/dev/null); then
_wanted "versions-${words[3]}" \
expl "Available versions of ${words[3]}" \
compadd -- ${(f)versions}
fi
# Complete with installed versions for the plugin
_asdf__installed_versions_of_plus_system ${words[3]}
fi
;;
*)
Expand All @@ -325,12 +320,7 @@ case "$subcmd" in
else
local plugin="${words[3]}"
fi
local versions
if versions=$(asdf list all "$plugin" 2>/dev/null); then
_wanted "versions-$plugin" \
expl "Available versions of $plugin" \
compadd -- ${(f)versions}
fi
_asdf__installed_versions_of_plus_system $plugin
;;
esac
;;
Expand Down
Loading