Created
September 2, 2011 10:24
-
-
Save karmi/1188332 to your computer and use it in GitHub Desktop.
Hook up your Homebrew installed with curl to your Github fork
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Homebrew | |
# | |
mkdir -p /usr/local | |
mkdir -p /usr/local/bin | |
sudo chown -R $USER /usr/local | |
cd $HOME && mkdir -p homebrew | |
curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew | |
ln -nfs $HOME/homebrew/bin/brew /usr/local/bin/ | |
brew update | |
# Hook up Homebrew installation in `~/homebrew` to your fork | |
# | |
rm -rf /tmp/myhomebrew | |
git clone git@github.com:$USER/homebrew.git /tmp/myhomebrew | |
git --git-dir=/tmp/myhomebrew/.git remote rename origin $USER | |
git --git-dir=/tmp/myhomebrew/.git remote add upstream git://github.com/mxcl/homebrew.git | |
cp -r /tmp/myhomebrew/.git $HOME/homebrew/.git | |
rm -rf /tmp/myhomebrew |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment