The simplest way to set vagrant default directory

Published on

1 min read

Here the oneliner, add it to the end of your Vagrantfile

config.vm.provision "shell", inline: "echo 'cd /MY_DIRECTORY' >> /home/vagrant/.bashrc"