Skip to content

Instantly share code, notes, and snippets.

@tadas-s
Created October 27, 2017 12:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tadas-s/0cd468a4cc9fa4cafce6fe57a5dce123 to your computer and use it in GitHub Desktop.
Save tadas-s/0cd468a4cc9fa4cafce6fe57a5dce123 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