# Autocompletion for Vagrant just put this line in your ~/.profile or lik this file into it like:
# source /path/to/vagrant/contrib/bash/completion.sh
complete -W "$(echo `vagrant --help | awk '/box/,/up/ {print $1}'`;)" vagrant
# Autocompletion for Vagrant just put this line in your ~/.profile or link this file into it like:
# source /path/to/vagrant/contrib/bash/completion.sh
complete -W "$(echo `vagrant --help | awk '/^     /{print $1}'`;)" vagrant

Make it more future proof by not using first and last command also fixed a typo
Make it more future proof by not using first and last command
also fixed a typo