Merge pull request #10168 from lelutin/bash_completion_destroy

bash: complete running VM names for destroy subcommand
This commit is contained in:
Brian Cain 2018-09-07 13:05:00 -07:00 committed by GitHub
commit 9da922c871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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