Permalink
Browse files

Bash: add alias to copy ssh pubkey to clipboard

  • Loading branch information...
1 parent 1820f3e commit dd313aeec798bde7ca30ff93dfc97e12b7fabcd2 @necolas committed Apr 7, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 bash/aliases
View
@@ -24,6 +24,9 @@ alias catn="cat -n"
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en1"
+# Copy my public key to my clipboard
+alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'"
+
# Flush DNS cache
alias flushdns="dscacheutil -flushcache"

0 comments on commit dd313ae

Please sign in to comment.