X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=blobdiff_plain;f=README.md;fp=README.md;h=12fcd99d3e637c0ecec8e192a55cb9b4cd066162;hp=0000000000000000000000000000000000000000;hb=98cb869941896b43b33ed5786837911c267c772f;hpb=72e96deddcc3c96e4eaaa3ee6012d0005e5ada6e diff --git a/README.md b/README.md new file mode 100644 index 0000000..12fcd99 --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# CopyMyConf + +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. + +## How to Use + +It is a simple 3 step process + +### Add gem in your vagrant + + $ vagrant gem install copy_my_conf + +### Add provisioner in your Vagrantfile + +Add these lines in your vagrant file inside the `Vagrant::Config.run` block + + config.vm.provision CopyMyConf do |copy_conf| + copy_conf.git = true + copy_conf.vim = true + copy_conf.ssh = true + 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' + +### Fire ! + + $ vagrant up + +And you'll be good to go. + +## Feedback +This is my first gem so any kind of feedback would be appreciated. +Feel free fork, edit and send pull requests. + +## Copyrights & Author + +Copyright(c) 2013 Akshay Mankar +License: [MIT License](http://mit-license.org/)