Skip to content

Instantly share code, notes, and snippets.

@pjaspers
Created October 31, 2013 09:24
Show Gist options
  • Save pjaspers/7246746 to your computer and use it in GitHub Desktop.
Save pjaspers/7246746 to your computer and use it in GitHub Desktop.
Quick way to get a public key into your clipboard.
# Takes a Github Username and copies his/her public key
#
# ghkey pjaspers
#
function ghkey {
if (( $# < 1 ))
then echo "usage: ghkey <username>"; return 1; fi
curl -sL https://github.com/$1.keys | pbcopy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment