Skip to content

Commit

Permalink
Fixing the localip command
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashungaro committed May 18, 2012
1 parent b4a50c4 commit b897536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_profile
Expand Up @@ -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
Expand Down

0 comments on commit b897536

Please sign in to comment.