dotfiles/bin/,myip
Fernando Schauenburg e44b318e61 bash: turn aliases into scripts
This makes the common actions previously encoded as bash aliases
independent of the shell (I'm using /bin/sh for the scripts), which will
make a potential switch to zsh easier by having less bash-specific stuff
around.
2021-07-22 17:34:00 +02:00

9 lines
399 B
Bash
Executable file

#!/bin/sh
# A few options to get public IP address on command line. The dig solution
# below using the OpenDNS resolver doesn't work when connected to
# ExpressVPN because all DNS requests are handled by the ExpressVPN DNS
# servers and the OpenDNS DNS resolver is blocked.
exec curl -s https://ifconfig.co
#exec curl -s https://ifconfig.me
#exec dig +short myip.opendns.com @resolver1.opendns.com