Skip to content

Instantly share code, notes, and snippets.

@ysawa
Created April 19, 2014 05:18
Show Gist options
  • Save ysawa/11074867 to your computer and use it in GitHub Desktop.
Save ysawa/11074867 to your computer and use it in GitHub Desktop.
Search words and phrases with Google Chrome.
#!/bin/bash
query=$(printf " %s" "$@")
query=${query:1}
/usr/bin/open -a "/Applications/Google Chrome.app" "https://google.com/search?q=$query"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment