From 502338e0336168a7e4da862a2cd12b7ed7b067f4 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Fri, 28 Mar 2014 13:58:41 +0100 Subject: .aliases: Use `en0` for `localip` --- .aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.aliases') diff --git a/.aliases b/.aliases index 73108bd..bdac6b3 100644 --- a/.aliases +++ b/.aliases @@ -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 -- cgit v1.2.3