Permalink
Browse files

Fixing the localip command

  • Loading branch information...
1 parent b4a50c4 commit b897536164181e7414fbb93f1bf8ce9e5647e243 @lucashungaro committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bash_profile
View
@@ -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

0 comments on commit b897536

Please sign in to comment.