1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-02-23 09:41:37 +00:00
nnn/plugins/ipinfo

14 lines
250 B
Text
Raw Normal View History

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