3 Now you can copy your dotfiles into your vagrant box, so that you don't feel like visiting Mars whenever you are in vagrant shell.
5 This project from forked from https://github.com/akshaymankar/copy_my_conf on 9/28/2018.
9 It is a simple 2 step process
11 ### Add gem in your vagrant
13 $ vagrant plugin install vagrant-dotfiles
15 ### Create a ~/.vagrant/dotfiles files
17 Each line in the file should be a dotfile in your home directory of your workstations.
19 The plugin will copy this file into your /home/vagrant directory during the 'vagrant up' action.
21 Don't worry if you have any other provisioners, vagrant can work with multiple provisioners. Yay \o/
23 If home directory of the user is not `/home/vagrant` then you can specify that using the `user_home` option in above code
25 config.vm.provision :vagrant-dotfiles do |dotfiles_config|
26 dotfiles_conf.user_home = '/home/some_other_user'
29 Note there are some edge cases with trying to copy your .ssh and .ssh/authorized_keys and .tmpssh* files over so the plugin doesn't clobber
30 the vagrant key stored in .ssh/authorized_keys.
36 And you'll be good to go.
40 Reminders for the occasional/accidental rubyist
42 Rebuilding the gem: gem build vagrant-dotfiles.gemspec
43 Running the tests: rspec spec
44 Loading the gem to the local dev environment: vagrant plugin install --local ./vagrant-dotfiles-1.0.0.gem
47 This is my first gem so any kind of feedback would be appreciated.
48 Feel free fork, edit and send pull requests.
50 ## Copyrights & Author
52 Copyright(c) 2018 Jude Nagurney <jude@pwan.org>
53 License: [MIT License](http://mit-license.org/)