Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 4dce816

Browse files
committed
Start on a smarter install process
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.
1 parent 6a683b7 commit 4dce816

3 files changed

Lines changed: 37 additions & 6 deletions

File tree

‎README.markdown‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ subject](http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/).
1818

1919
## install
2020

21-
- `git clone git://github.com/holman/dotfiles ~/.dotfiles`
22-
- `cd ~/.dotfiles`
23-
- `rake install`
21+
Run this:
2422

25-
The install rake task will symlink the appropriate files in `.dotfiles` to your
26-
home directory. Everything is configured and tweaked within `~/.dotfiles`,
27-
though.
23+
```sh
24+
git clone https://github.com/holman/dotfiles.git ~/.dotfiles
25+
cd ~/.dotfiles
26+
script/bootstrap
27+
```
28+
29+
This will symlink the appropriate files in `.dotfiles` to your home directory.
30+
Everything is configured and tweaked within `~/.dotfiles`, though.
2831

2932
The main file you'll want to change right off the bat is `zsh/zshrc.symlink`,
3033
which sets up a few paths that'll be different on your particular machine.

‎script/bootstrap‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
#
3+
# bootstrap installs things.
4+
5+
# Assume everyone's on OS X and run Homebrew (*nix-ers beware)
6+
. script/homebrew
7+
8+
# Run the install (I'd like to pull this out of rake, eventually)
9+
rake install

‎script/homebrew‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
#
3+
# Homebrew
4+
#
5+
# This installs some of the common dependencies needed (or at least desired)
6+
# using Homebrew.
7+
8+
# Check for Homebrew
9+
if test ! $(which brew)
10+
then
11+
echo " x You should probably install Homebrew first:"
12+
echo " https://github.com/mxcl/homebrew/wiki/installation"
13+
exit
14+
else
15+
echo " + Homebrew found."
16+
fi
17+
18+
# Install grc and coreutils
19+
brew install grc coreutils

0 commit comments

Comments
 (0)