mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-12-22 09:13:22 +01:00
alias for copying public SSH & GPG keys
This commit is contained in:
parent
f0bc1eb730
commit
5fabeb4d89
7
aliases
7
aliases
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user