diff --git a/Vagrantfile b/Vagrantfile index 513807f0..4194a97c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -14,6 +14,7 @@ github_pat = "" # Server Configuration hostname = "vaprobash.dev" +start_dir = "/vagrant" # Set a local private network IP address. # See http://en.wikipedia.org/wiki/Private_network for explanation @@ -192,7 +193,7 @@ Vagrant.configure("2") do |config| ########## # Provision Base Packages - config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone] + config.vm.provision "shell", path: "#{github_url}/scripts/base.sh", args: [github_url, server_swap, server_timezone, start_dir] # optimize base box config.vm.provision "shell", path: "#{github_url}/scripts/base_box_optimizations.sh", privileged: true diff --git a/scripts/base.sh b/scripts/base.sh index 803ac059..88c3cab2 100644 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -81,3 +81,6 @@ shopt -u nocasematch # Enable cachefilesd echo "RUN=yes" > /etc/default/cachefilesd + +# Set start directory +echo "cd $4" >> /home/vagrant/.bashrc