Skip to content

Instantly share code, notes, and snippets.

@petergi
Created June 14, 2020 15:18
Show Gist options
  • Select an option

  • Save petergi/573c15385b5331e84e557605d0e23a3f to your computer and use it in GitHub Desktop.

Select an option

Save petergi/573c15385b5331e84e557605d0e23a3f to your computer and use it in GitHub Desktop.
Homebrew: Open Brew Package Info Website
brew home $1 2> /dev/null || brew cask home $1
#!/bin/bash
open $(brew info $1 | ag '^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment