From b897536164181e7414fbb93f1bf8ce9e5647e243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20H=C3=BAngaro?= Date: Fri, 18 May 2012 18:09:59 -0300 Subject: [PATCH] Fixing the localip command --- bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_profile b/bash_profile index fe4add4..48f9e35 100755 --- a/bash_profile +++ b/bash_profile @@ -71,7 +71,7 @@ alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; speed # IP addresses alias ip="dig +short myip.opendns.com @resolver1.opendns.com" -alias localip="ipconfig getifaddr en1" +alias localip="ifconfig en0 inet | grep 'inet ' | awk ' { print $2 } '" alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'" # Enhanced WHOIS lookups