Skip to content

Commit

Permalink
Start on a smarter install process
Browse files Browse the repository at this point in the history
Run a script that installs from Homebrew. Eventually this would
be great to nuke the rake dependency and do it all in shell. I
kind of hate all of this... this should be more modular and
cleaner. Always something to do!

This also closes holman#31.
  • Loading branch information
holman committed Jul 30, 2012
1 parent 3780b51 commit 5c486cc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.markdown
Expand Up @@ -18,13 +18,16 @@ subject](http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/).

## install

- `git clone git://github.com/holman/dotfiles ~/.dotfiles`
- `cd ~/.dotfiles`
- `rake install`
Run this:

The install rake task will symlink the appropriate files in `.dotfiles` to your
home directory. Everything is configured and tweaked within `~/.dotfiles`,
though.
```sh
git clone https://github.com/holman/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
script/bootstrap
```

This will symlink the appropriate files in `.dotfiles` to your home directory.
Everything is configured and tweaked within `~/.dotfiles`, though.

The main file you'll want to change right off the bat is `zsh/zshrc.symlink`,
which sets up a few paths that'll be different on your particular machine.
Expand Down
9 changes: 9 additions & 0 deletions script/bootstrap
@@ -0,0 +1,9 @@
#!/bin/sh
#
# bootstrap installs things.

# Assume everyone's on OS X and run Homebrew (*nix-ers beware)
. script/homebrew

# Run the install (I'd like to pull this out of rake, eventually)
rake install
19 changes: 19 additions & 0 deletions script/homebrew
@@ -0,0 +1,19 @@
#!/bin/sh
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.

# Check for Homebrew
if test ! $(which brew)
then
echo " x You should probably install Homebrew first:"
echo " https://github.com/mxcl/homebrew/wiki/installation"
exit
else
echo " + Homebrew found."
fi

# Install grc and coreutils
brew install grc coreutils

0 comments on commit 5c486cc

Please sign in to comment.