Skip to content

Instantly share code, notes, and snippets.

@caktux
Created March 11, 2015 04:10
Show Gist options
  • Save caktux/81716b6835dcc65d350d to your computer and use it in GitHub Desktop.
Save caktux/81716b6835dcc65d350d to your computer and use it in GitHub Desktop.
Get a brew formula version number
# show installed brew formula version
function brew-version {
brew info $1 | awk '{print $3}' | head -n1
}
# show last available brew formula version
function brew-last-version {
brew versions $1 | awk '{print $1}' | head -n1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment