Skip to content

Instantly share code, notes, and snippets.

View badzil's full-sized avatar

Benoit Thiell badzil

  • Boston, MA
View GitHub Profile
@badzil
badzil / install_homebrew.rb
Created November 10, 2011 14:05 — forked from mxcl/install_homebrew.markdown
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
# unzip https://github.com/mxcl/homebrew/zipball/master 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