Instead of going to the home directory, you may prefer to go to another directory when you SSH into a Vagrant VM. If so, here’s how to accomplish that.
SSH into the Vagrant box you want to modify. Once logged in, open
~/.bashrc in your editor of choice. Add
to the bottom the
.bashrc file. Next time you SSH into your Vagrant VM, you’ll be where you want to be without having to change directories manually every time. Verified on Ubuntu 14.04. Tip inspired by http://unix.stackexchange.com/a/32471.