mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.04k stars 8.75k forks source link

Retrieve localip independently #887

Closed bluedigits closed 4 years ago

bluedigits commented 4 years ago

Since MacOS doesn't necessarily name the cabled network interface en0 the localip command fails when WI-FI is down. This PR should fix this issue and resolve the local ip properly when connected via cable.