Last active
August 29, 2015 14:25
-
-
Save nachoaIvarez/fa0194bf1e996269e875 to your computer and use it in GitHub Desktop.
Print LAN IP in the Mac terminal.
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
gip(){ | |
ifconfig en0 | grep inet | grep -v inet6 | awk '{printf "\n\033[1;32m" $2 "\033[0m\n\n"}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment