#!/bin/sh
# Gets the local IP address
# Usage: self
sedEreFlag="$(test "$(uname)" = Darwin && echo E || echo r)"
sed () { "$(which sed)" -"$sedEreFlag" "$@";}
ifconfig en0|sed -n 's/^.* ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+) .*$/\1/p'