-
-
Save alecthegeek/81eaa6b3b932ca8efb7f to your computer and use it in GitHub Desktop.
Google search from command line on a Mac
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
#!/usr/bin/env sh | |
# Google search from command line on a Mac | |
open "http://www.google.com/search?q=$(echo "$@" | sed -Ee 's/\s+/%20/g')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment