1
1
mirror of https://github.com/jarun/nnn.git synced 2024-09-17 15:57:17 +03:00
nnn/plugins/ipinfo

14 lines
250 B
Plaintext
Raw Normal View History

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