1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-12-22 01:03:24 +01:00

get IP alias update

This commit is contained in:
Matthias Kretschmann 2021-01-30 22:15:23 +01:00
parent 9e4bcaed16
commit 8ab7ea182e
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -8,13 +8,14 @@ alias ~="cd ~"
alias f='open .'
alias c='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code .'
alias n='nova .'
# Update All The Things
alias update='update-everything.sh'
# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en1"
alias ip="dig TXT +short o-o.myaddr.l.google.com @ns1.google.com"
alias iplocal="ipconfig getifaddr en0"
# Copy SSH public key to pasteboard
alias pubkey='more ~/.ssh/id_rsa.pub | pbcopy | printf "✓ Public SSH key copied to pasteboard.\n"'