-
-
Save markstachowski/d7504118a59adc712004f60f4842b9dc to your computer and use it in GitHub Desktop.
Installing your personal dotfiles on each Vagrant VM you use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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