Rake tasks for setting up your dotfiles, firefox profiles, etc
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dotfiles
firefox
lib
README
Rakefile

README

myenv-builder
=============

generate and deploy your configuration files like dot files, firefox user.js, etc.

I'm using it on FreeBSD, Linux, Windows and MacOSX

REQUIRE
-------

* Ruby
* Rake

GETTING STARTED
---------------

basic layout

myenv-builder
|-- README
|-- Rakefile
|-- dotfiles/   your dot files
|-- firefox/    your profile settings
`-- lib/        Rakefile's libraries

$ cd myenv-builder
$ mv ~/.zshrc dotfiles/zshrc
$ rake dotfiles:link_priv
$ ls -l ~/

 .zshrc -> dotfiles/zshrc

WHAT YOU CAN
------------

1. versioning your config files
2. reuse the same config files in multiple environments
3. switch to set up config files for job or private with erb

ERB EXAMPLE
-----------

gitconfig.erb

[user]
<%- if workspace == 'job' -%>
    name  = T.Watanabe
    email = watanabe@example.com
<%- else -%>
    name  = wtnabe
    email = wtnabe@gmail.com
<%- end -%>
[alias]
    stat = status
    ci   = commit -a
    br   = branch
    co   = checkout
    up   = update
[color]
    status = auto
    diff   = auto
[core]
    excludesfile = <%= ENV['HOME'] %>/.gitignore