Last active
February 11, 2017 14:52
-
-
Save fmedery/fc08f0bfa27180c7490020e8892108b9 to your computer and use it in GitHub Desktop.
wanip alias with colors
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
alias wanip='curl -s ipinfo.io/$(dig +short myip.opendns.com @resolver1.opendns.com) | jq .' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jq is not mandatory but bring colors to the output and can be installed on all *nix machines easily (using apt, yum or homebrew on a mac for ex)