]> git.rmz.io Git - dotfiles.git/blob - bin/whatsmyip
vim: enable <C-L>/<C-H> mappings in terminal window too
[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