Jamie Hill
Photo of Jamie Hill

UX Designer, CSS Wizard, Ruby on Rails Developer.

Bash function for getting local IP on OSX

Below is a handy little bash function that returns your local IP address on OSX (and maybe elsewhere). Just pop the following in your .profile.

### Get local IP ###
function ip {
  ipconfig getifaddr en1
}