]> git.rmz.io Git - dotfiles.git/blob - bin/whatsmyip
zsh: export CTEST_OUTPUT_ON_FAILURE=1 for better ctest results
[dotfiles.git] / bin / whatsmyip
1 #!/bin/bash
2
3 if hash dig 2>/dev/null; then
4 dig +short myip.opendns.com @resolver1.opendns.com
5 elif hash curl 2>/dev/null; then
6 curl -s ifconfig.me/ip
7 fi