Skip to content

Instantly share code, notes, and snippets.

@fredleger
Created November 5, 2017 17:54
Show Gist options
  • Save fredleger/57c8510a4d232b15fda85dea3748464a to your computer and use it in GitHub Desktop.
Save fredleger/57c8510a4d232b15fda85dea3748464a to your computer and use it in GitHub Desktop.
function github-release-url() {
read -p 'what is GH url of project ?> ' GHU
curl -sS $GHU | perl -ne '/\s+<a href="(.*)" rel="nofollow"/ && print "$1\n"'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment