Skip to content

Instantly share code, notes, and snippets.

@fmedery
Last active February 11, 2017 14:52
Show Gist options
  • Save fmedery/fc08f0bfa27180c7490020e8892108b9 to your computer and use it in GitHub Desktop.
Save fmedery/fc08f0bfa27180c7490020e8892108b9 to your computer and use it in GitHub Desktop.
wanip alias with colors
alias wanip='curl -s ipinfo.io/$(dig +short myip.opendns.com @resolver1.opendns.com) | jq .'
@fmedery
Copy link
Author

fmedery commented Feb 11, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment