diff --git a/contrib/bash/completion.sh b/contrib/bash/completion.sh index a3963a7c7..770e13ee0 100644 --- a/contrib/bash/completion.sh +++ b/contrib/bash/completion.sh @@ -85,7 +85,7 @@ _vagrant() { then running_vm_list=$(grep 'active' "${vagrant_state_file}" | sed -e 's/"active"://' | tr ',' '\n' | cut -d '"' -f 2 | tr '\n' ' ') else - running_vm_list=$(find "${vagrant_state_file}" -type f -name "id" | awk -F"/" '{print $(NF-2)}') + running_vm_list=$(find "${vagrant_state_file}/machines" -type f -name "id" | awk -F"/" '{print $(NF-2)}') fi COMPREPLY=($(compgen -W "${running_vm_list}" -- ${cur})) return 0