# Vagrant VM: Add \`cd /vagrant\` to ~/.profile

**URL:** <https://meta.discourse.org/t/vagrant-vm-add-cd-vagrant-to-profile/55755>\
**Category:** Development\
**Created:** [2017年一月14日 10:31 UTC](https://meta.discourse.org/t/vagrant-vm-add-cd-vagrant-to-profile/55755 "2017-01-14T10:31:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)\
**Post date:** [2017年一月14日 10:31 UTC](https://meta.discourse.org/t/vagrant-vm-add-cd-vagrant-to-profile/55755/1 "2017-01-14T10:31:20Z")

</div>

If you follow the [Discourse Developer Install Guide (Vagrant)](https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md), you will always need to `cd /vagrant` after `vagrant ssh`.

Therefore I added this command to the `~/.profile` within the Vagrant VM, so that I never have to do that anymore:

```
$ vagrant ssh
$ echo "cd /vagrant" >> ~/.profile

```

I was wondering: Could we add this to the VM by default? Or add this hint to the guide?
