Skip to content

Instantly share code, notes, and snippets.

@mattyo161
mattyo161 / install_homebrew.rb
Created January 6, 2012 14:05 — forked from fenollp/install_homebrew.rb
Installs Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/sceaga/homebrew/tarball/tiger anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end