Merge pull request #643 from mikeroll/fix-plugin-add-completion

Fix bash completion for `plugin-add`
This commit is contained in:
Trevor Brown 2020-01-29 08:01:02 -05:00 committed by GitHub
commit a1f76f7613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ _asdf() {
;;
plugin-add)
local available_plugins
available_plugins=$( (asdf plugin-list 2>/dev/null && asdf plugin-list-all 2>/dev/null) | sort | uniq -u)
available_plugins=$(asdf plugin-list-all 2>/dev/null | awk '{ if ($2 !~ /^\*/) print $1}')
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "$available_plugins" -- "$cur"))
;;