jjb / dotstore

dotstore is an easy way to keep your dotfiles in sync between computers. You can use git, svn, dropbox, etc, to manage the files, and dotstore does the rest.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotstore is an easy way to keep your dotfiles in sync between computers, using git for all the things that make sense to use git for, and scripts for the rest.

Installation

gem install dotstore

Usage

  1. Keep your dotfiles in a git repository (or any repository, or any directory, maybe synched with dropbox) in .dotstore. Here's how I would initiate mine in a new environment:

    git clone http://github.com/jjb/dotfiles.git .dotstore
    
  2. invoke dotstore

    ➔ dotstore 
    
    == .bash_profile ==
    .bash_profile exists. Backing it up to .bash_profile-1281762101
    dotstorifying .bash_profile
    
    == .bashrc ==
    .bashrc exists. Backing it up to .bashrc-1281762101
    dotstorifying .bashrc
    
    == .irbrc ==
    .irbrc exists. Backing it up to .irbrc-1281762101
    dotstorifying .irbrc
    
    == .zshrc ==
    .zshrc exists. Backing it up to .zshrc-1281762101
    dotstorifying .zshrc
    

Notes

  1. Symlinks will only be created for dot files. non-dot files in .dotstore will be ignored.
  2. Therefore, you can keep any other flat files or directories in .dotstore and they will be ignored. For example, my dot files refer to other files in a directory tree in .dotfiles.
  3. Existing files in your home directory are backed up. Existing symlinks to .dotfiles or anywhere else are ignored.
  4. You can keep dot directories in .dotfiles as well, they will be managed the same as files. (I don't have any applications that use dot directories however, so I've only done simple tests for this)

Future

  1. a command to seamlessly add existing dot files to the .dotstore directory.

publishing gem

gem build dotstore.gemspec
gem push dotstore-1.0.0.gem

About

dotstore is an easy way to keep your dotfiles in sync between computers. You can use git, svn, dropbox, etc, to manage the files, and dotstore does the rest.


Languages

Language:Ruby 100.0%