Skip to content

Instantly share code, notes, and snippets.

@srdjanmarjanovic
Forked from JeffreyWay/gist:6176883
Last active December 24, 2016 20:33
Show Gist options
  • Select an option

  • Save srdjanmarjanovic/d99c6a0d3a287e25757eb63d8358baee to your computer and use it in GitHub Desktop.

Select an option

Save srdjanmarjanovic/d99c6a0d3a287e25757eb63d8358baee to your computer and use it in GitHub Desktop.
Add this to your bash_profile. Now, whenever you need to fetch your ssh-key, just type sshkey, and it'll be copied to your clipboard.
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment