diff options
author | Mathias Bynens <mathias@qiwi.be> | 2014-03-28 13:58:41 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-03-28 13:58:41 +0100 |
commit | 502338e0336168a7e4da862a2cd12b7ed7b067f4 (patch) | |
tree | b7d7e567701246046d31040df0bcb41559513bd4 /.aliases | |
parent | 60f455cfceead125c1b4a13adb43bc3894079825 (diff) | |
download | dotfiles-502338e0336168a7e4da862a2cd12b7ed7b067f4.tar.gz dotfiles-502338e0336168a7e4da862a2cd12b7ed7b067f4.tar.bz2 dotfiles-502338e0336168a7e4da862a2cd12b7ed7b067f4.zip |
.aliases: Use `en0` for `localip`
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,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 localip="ipconfig getifaddr en0" 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 |