]> git.rmz.io Git - dotfiles.git/blob - bin/whatsmyip
vim/fugitive: winfixheight FugitiveIndex window
[dotfiles.git] / bin / whatsmyip
1 #!/bin/bash
2
3 if hash drill 2>/dev/null; then
4 drill myip.opendns.com @resolver1.opendns.com | grep "^myip." | cut -f5
5 elif hash dig 2>/dev/null; then
6 dig +short myip.opendns.com @resolver1.opendns.com
7 elif hash curl 2>/dev/null; then
8 curl -s ifconfig.me/ip
9 fi