diff options
author | Chen Cohen <hencohen90@gmail.com> | 2013-10-28 21:39:49 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2013-10-30 09:48:33 +0100 |
commit | 24ed3fa6c8a71886c0637d9d5a3e64e970365e7c (patch) | |
tree | 4ec5ce0f5285ec16b14420d4e65db578a0326b68 /.aliases | |
parent | fac04d144178c43ba27f9b5f6647fd98aa73b9b0 (diff) | |
download | dotfiles-24ed3fa6c8a71886c0637d9d5a3e64e970365e7c.tar.gz dotfiles-24ed3fa6c8a71886c0637d9d5a3e64e970365e7c.tar.bz2 dotfiles-24ed3fa6c8a71886c0637d9d5a3e64e970365e7c.zip |
.aliases: Improve `ips`
Ref. #268 and #269.
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup # IP addresses alias ip="dig +short myip.opendns.com @resolver1.opendns.com" alias localip="ipconfig getifaddr en1" -alias ips="ifconfig -a | grep -o 'inet6\? \(\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)\|[a-fA-F0-9:]\+\)' | sed -e 's/inet6* //'" +alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'" # Enhanced WHOIS lookups alias whois="whois -h whois-servers.net" |