bash: complete running VM names for destroy subcommand
for some reason there is currently no completion at all for the destroy subcommand. like the other commands already present in that code block, destroy acts on currently running VMs and so it makes sense to complete those names.
This commit is contained in:
parent
07092bc36f
commit
da600bc940
|
@ -79,7 +79,7 @@ _vagrant() {
|
|||
COMPREPLY=($(compgen -W "${up_commands} ${vm_list}" -- ${cur}))
|
||||
return 0
|
||||
;;
|
||||
"ssh"|"provision"|"reload"|"halt"|"suspend"|"resume"|"ssh-config")
|
||||
"destroy"|"ssh"|"provision"|"reload"|"halt"|"suspend"|"resume"|"ssh-config")
|
||||
vagrant_state_file=$(__vagrantinvestigate) || return 1
|
||||
if [[ -f "${vagrant_state_file}" ]]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue