Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't provide destructive instructions

If /usr/local doesn't exist you've just sudo chowned $PWD
  • Loading branch information...
commit 3684faeaab3e461112689850e4ae7e4c34e52ae3 1 parent 3c77c3f
@mxcl mxcl authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 README.md
View
11 README.md
@@ -10,16 +10,15 @@ Run <http://gist.github.com/323731> and afterwards, [install Xcode][xcode].
Umm… I thought I could install it anywhere?
-------------------------------------------
-Indeed, you can. Please read our [complete installation instructions][install].
+Indeed, you can. Refer to our [complete installation instructions][install].
-Dude! Just give me a three-liner!
---------------------------------------
+Dude! Just give me a two-liner!
+-------------------------------
Alright then… as long as you know what you are doing:
- cd /usr/local
- sudo chown -R $USER .
- curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1
+ sudo chown -R $USER /usr/local
+ curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xvz -C/usr/local --strip 1
More Documentation

3 comments on commit 3684fae

@roja

I think the one-liner should well be changed to:

ruby -e "$(curl http://gist.github.com/raw/323731/install_homebrew.rb)"

@godfat

If that's the case, I propose to use below instead because $() didn't work on my shell (fish shell)
curl http://gist.github.com/raw/323731/install_homebrew.rb | ruby -e 'eval($stdin.read)'

@mkhl

…which should be identical to:
curl http://gist.github.com/raw/323731/install_homebrew.rb | ruby

(Also, if you changed your shell to fish, you should be aware that is spells $() as ().)

Please sign in to comment.
Something went wrong with that request. Please try again.