Skip to content

Instantly share code, notes, and snippets.

@JeffreyWay
Created August 7, 2013 18:19
Show Gist options
  • Star 40 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save JeffreyWay/6176883 to your computer and use it in GitHub Desktop.
Save JeffreyWay/6176883 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.'"
@tommymarshall
Copy link

👍

@ermand
Copy link

ermand commented Aug 7, 2013

👍

@HiroKws
Copy link

HiroKws commented Aug 7, 2013

bccopy for MAC users only. On linux, xsel or xclip command can be used.

@RobinMalfait
Copy link

👍 Hero ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment