1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-21 17:27:13 +01:00

alias for copying public SSH & GPG keys

This commit is contained in:
Matthias Kretschmann 2017-05-21 00:27:04 +02:00
parent f0bc1eb730
commit 5fabeb4d89
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -20,8 +20,11 @@ alias update='update-everything.sh'
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en1"
# Copy public key to pasteboard
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | printf '=> Public key copied to pasteboard.\n'"
# Copy SSH public key to pasteboard
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | printf '$(tput setaf 64)✓ Public SSH key copied to pasteboard.$(tput sgr0)\n'"
# Copy GPG public key to pasteboard
alias gpgpubkey="gpg --export --armor 0xDD7831FC | pbcopy | printf '$(tput setaf 64)✓ Public GPG key copied to pasteboard.$(tput sgr0)\n'"
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"