Added missing local and global to bash completion

This commit is contained in:
Julian Laubstein 2017-04-25 14:22:40 +02:00 committed by GitHub
parent 9ce486339f
commit 5fbf730c4c

View File

@ -23,7 +23,7 @@ _asdf () {
COMPREPLY=($(compgen -W "$plugins" -- $cur))
fi
;;
uninstall|where|reshim)
uninstall|where|reshim|local|global)
if [[ "$plugins" == *"$prev"* ]] ; then
local versions=$(asdf list $prev)
COMPREPLY=($(compgen -W "$versions" -- $cur))
@ -32,7 +32,7 @@ _asdf () {
fi
;;
*)
local cmds='plugin-add plugin-list plugin-remove plugin-update install uninstall update current where list list-all reshim'
local cmds='plugin-add plugin-list plugin-remove plugin-update install uninstall update current where list list-all local global reshim'
COMPREPLY=($(compgen -W "$cmds" -- $cur))
;;
esac