Saturday, December 1, 2007

Bash Google One-Liner For OS X


<macbook of doom:giles> [12-01 08:35] ~
! cat /opt/local/bin/google
#!/opt/local/bin/ruby

system("open http://google.com/search?q=#{ARGV[0].gsub(/ /, '%20')}")

<macbook of doom:giles> [12-01 08:36] ~
! google "let me not to the marriage of true minds admit impediments"


(And a window pops open.)