Skip to content

Instantly share code, notes, and snippets.

@mrdcbrush
Created February 25, 2014 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrdcbrush/9210231 to your computer and use it in GitHub Desktop.
Save mrdcbrush/9210231 to your computer and use it in GitHub Desktop.
Open Brew (Mac Brew) Project URL from the Command Line
#!/bin/bash
URL=$(brew info $1 | head -2 | tail -1)
open $URL
@mrdcbrush
Copy link
Author

I have it existing as bi in /usr/local/bin when I want to open the project url for a brew package I type

bi ruby

And the site opens in my default browser (Safari)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment