~kris/dots

srice

ref: a4bfa48cdda924f7a77a81e8d8e93e326a01b8a0 srice/.config/nnn/plugins/ipinfo -rwxr-xr-x 250 bytes
a4bfa48c — Kris Yotam mksh: reliable history hook via HISTFILE growth + binary record parse 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env sh

# Description: Shows the external IP address and whois information. Useful over VPNs.
#
# Shell: POSIX compliant
# Author: Arun Prakash Jana

IP=$(curl -s ifconfig.me)

whois "$IP"
echo your external IP address is "$IP"

read -r _