nnn/plugins/ipinfo

14 lines
250 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2019-05-24 17:44:19 +00:00
# Description: Shows the external IP address and whois information. Useful over VPNs.
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana
2019-11-21 20:44:25 +00:00
IP=$(curl -s ifconfig.me)
whois "$IP"
2019-05-24 17:44:19 +00:00
echo your external IP address is "$IP"
2019-11-21 20:44:25 +00:00
read -r _