Created
June 23, 2013 00:04
-
-
Save jtabone16/5843180 to your computer and use it in GitHub Desktop.
Search Google and Stack Overflow via bash
This file contains hidden or 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
google() { | |
gq=$(sed 's/ /+/g' <<<"$*") | |
open -a /Applications/Google\ Chrome.app "http://www.google.com/search?q=$gq"; | |
} | |
oflow(){ | |
gq=$(sed 's/ /+/g' <<<"$*") | |
open -a /Applications/Google\ Chrome.app "http://www.stackoverflow.com/search?q=$gq"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment