From da600bc940783c6560af7793dfa29d2a887f3a7d Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Mon, 3 Sep 2018 04:00:47 -0400 Subject: [PATCH] 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. --- contrib/bash/completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/bash/completion.sh b/contrib/bash/completion.sh index 700768264..d660999da 100644 --- a/contrib/bash/completion.sh +++ b/contrib/bash/completion.sh @@ -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