Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wtnabe/myenv-builder

Rake tasks for setting up your dotfiles, firefox profiles, etc
https://github.com/wtnabe/myenv-builder

Last synced: about 2 months ago
JSON representation

Rake tasks for setting up your dotfiles, firefox profiles, etc

Awesome Lists containing this project

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 = [email protected]
<%- else -%>
name = wtnabe
email = [email protected]
<%- end -%>
[alias]
stat = status
ci = commit -a
br = branch
co = checkout
up = update
[color]
status = auto
diff = auto
[core]
excludesfile = <%= ENV['HOME'] %>/.gitignore