diff --git a/fetch b/fetch index d4ecc3a7..7ce5d776 100755 --- a/fetch +++ b/fetch @@ -1343,6 +1343,11 @@ getlocalip () { localip="$(ip route get 1 | awk '{print $NF;exit}')" ;; + "Mac OS X") + localip="$(ipconfig getifaddr en0)" + [ -z "$localip" ] && localip="$(ipconfig getifaddr en1)" + ;; + "Windows") localip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2}')" ;;