only add to bashrc if not already there

This commit is contained in:
Dylan Vaughn 2017-01-02 09:26:55 -08:00
parent dbc61360ba
commit 46bef4ac8d
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -53,7 +53,7 @@ export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
EOF
chmod 755 /etc/profile.d/gopath.sh
cat >>/home/vagrant/.bashrc <<EOF
grep -q -F 'cd /opt/gopath/src/github.com/hashicorp/terraform' /home/vagrant/.bashrc || cat >>/home/vagrant/.bashrc <<EOF
## After login, change to terraform directory
cd /opt/gopath/src/github.com/hashicorp/terraform