X-Git-Url: https://pwan.org/git/?p=vagrant-dotfiles.git;a=blobdiff_plain;f=README.md;h=8914b1d22f891ea543841ad61046774a6b9528d6;hp=429253756b45c903cfedf4f467aea8585113509d;hb=e83a68ac49cf7bf169e58b5706605b072b4966a3;hpb=fa35bc36a5430811c454bc6f93aca0f6bdf20348 diff --git a/README.md b/README.md index 4292537..8914b1d 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,33 @@ -# CopyMyConf +# vagrant-dotfiles 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. +This project from forked from https://github.com/akshaymankar/copy_my_conf on 9/28/2018. + ## How to Use -It is a simple 3 step process +It is a simple 2 step process ### Add gem in your vagrant - $ vagrant plugin install copy_my_conf + $ vagrant plugin install vagrant-dotfiles -### Add provisioner in your Vagrantfile +### Create a ~/.vagrant/dotfiles files -Add these lines in your vagrant file inside the `Vagrant::Config.run` block +Each line in the file should be a dotfile in your home directory of your workstations. - config.vm.provision :copy_my_conf do |copy_conf| - copy_conf.git - copy_conf.vim - copy_conf.ssh - end +The plugin will copy this file into your /home/vagrant directory during the 'vagrant up' action. 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' + config.vm.provision :vagrant-dotfiles do |dotfiles_config| + dotfiles_conf.user_home = '/home/some_other_user' + emd + +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 +the vagrant key stored in .ssh/authorized_keys. ### Fire ! @@ -33,11 +35,19 @@ If home directory of the user is not `/home/vagrant` then you can specify that u And you'll be good to go. +## Development Notes + +Reminders for the occasional/accidental rubyist + +Rebuilding the gem: gem build vagrant-dotfiles.gemspec +Running the tests: rspec spec +Loading the gem to the local dev environment: vagrant plugin install --local ./vagrant-dotfiles-1.0.0.gem + ## 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 +Copyright(c) 2018 Jude Nagurney License: [MIT License](http://mit-license.org/)