Created
February 19, 2013 15:54
-
-
Save davidosomething/4987095 to your computer and use it in GitHub Desktop.
CLI tool to get a user's public SSH keys by their GitHub username
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_github_ssh_key() { | |
if [ -z "$1" ]; then | |
echo "Missing username" | |
echo | |
echo "USAGE: get_github_ssh_key GITHUB_USERNAME" | |
else | |
curl https://github.com/$1.keys | |
echo | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment