Skip to content

Commit

Permalink
.aliases: Use en0 for localip
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Mar 28, 2014
1 parent 60f455c commit 502338e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 502338e

Please sign in to comment.