Created
November 4, 2014 20:36
-
-
Save jamesgecko/cd635ea3cac3c31642da to your computer and use it in GitHub Desktop.
Get my current development url on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
interface=$(route get 0.0.0.0 2>/dev/null | awk '/interface: / {print $2}') | |
domain="http://$(ipconfig getifaddr $interface):3000" | |
echo $domain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment