Watch as I awkwardly stumble through life

Vagrant bash autocomplete on OSX

Posted by Marius Voila on December 23, 2015 in London, U.K . — 0 comments This post contains 123 words

Toying with Vagrant without autocomplete is definitely not much fun as just for listing all the VMs you would have to type vagrant global-status (I know you can use the help menu or create aliases but I just prefer autocomplete).

After looking around a bit I found this gem but the only problem is the fact that I don’t like brew and I prefer macports so the “install” process is a bit different than installing using brew.

$ sudo wget -O /opt/local/share/bash-completion/completions/vagrant

then add the following lines to your ~/.bashrc :

if [ -f /opt/local/etc/bash_completion ]; then
    . /opt/local/etc/bash_completion