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.
It is a simple 3 step process
$ vagrant plugin install copy_my_conf
Add these lines in your vagrant file inside the Vagrant::Config.run
block
config.vm.provision :copy_my_conf do |copy_conf|
copy_conf.git
copy_conf.vim
copy_conf.ssh
end
Don't worry if you have any other provisioners, vagrant can work with multiple provisioners. Yay \o/
As you might have guessed, If you make any of these false, the corresponding files won't be copied
If home directory of the user is not /home/vagrant
then you can specify that using the user_home
option in above code
copy_conf.user_home = '/home/some_other_user'
$ vagrant up
And you'll be good to go.
This is my first gem so any kind of feedback would be appreciated.
Feel free fork, edit and send pull requests.
Copyright(c) 2013 Akshay Mankar itsakshaymankar@gmail.com
License: MIT License