Skip to content

Instantly share code, notes, and snippets.

@markstachowski
Forked from tadas-s/Vagrantfile
Created April 21, 2018 11:09
Show Gist options
  • Save markstachowski/d7504118a59adc712004f60f4842b9dc to your computer and use it in GitHub Desktop.
Save markstachowski/d7504118a59adc712004f60f4842b9dc to your computer and use it in GitHub Desktop.
Installing your personal dotfiles on each Vagrant VM you use
# Change this to suit your dotfiles setup and copy to your *HOST* machine: $HOME/.vagrant.d/Vagrantfile
Vagrant.configure(2) do |config|
# Mount your dotfiles to vagrant user's home folder (or wherever you want):
config.vm.synced_folder "#{ENV['HOME']}/dotfiles", '/home/vagrant/dotfiles'
# Install dotfiles on every 'vagrant provision' call.
# For example, let's imagine your your dotfiles have 'install.sh' script:
config.vm.provision 'shell', privileged: false, inline: '/home/vagrant/dotfiles/install.sh'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment