mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
ipinfo shows external IP address
This commit is contained in:
parent
aa14a98ff9
commit
658099bee0
|
@ -7,7 +7,7 @@
|
||||||
| hexview | sh | xxd, `$PAGER` | View a file in hex |
|
| hexview | sh | xxd, `$PAGER` | View a file in hex |
|
||||||
| imgresize | sh | [imgp](https://github.com/jarun/imgp) | Resize images in directory to screen resolution |
|
| imgresize | sh | [imgp](https://github.com/jarun/imgp) | Resize images in directory to screen resolution |
|
||||||
| imgur | bash | - | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) |
|
| imgur | bash | - | Upload an image to imgur (from [imgur-screenshot](https://github.com/jomo/imgur-screenshot)) |
|
||||||
| ipinfo | sh | curl, whois | Fetch IP address and whois information |
|
| ipinfo | sh | curl, whois | Fetch external IP address and whois information |
|
||||||
| kdeconnect | sh | kdeconnect-cli | Send selected files to an Android device |
|
| kdeconnect | sh | kdeconnect-cli | Send selected files to an Android device |
|
||||||
| ndiff | sh | vimdiff | Show diff for selection |
|
| ndiff | sh | vimdiff | Show diff for selection |
|
||||||
| nmount | sh | pmount | Toggle mount status of a device as normal user |
|
| nmount | sh | pmount | Toggle mount status of a device as normal user |
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Description: Shows the IP address and whois information. Useful over VPNs.
|
# Description: Shows the external IP address and whois information. Useful over VPNs.
|
||||||
#
|
#
|
||||||
# Shell: POSIX compliant
|
# Shell: POSIX compliant
|
||||||
# Author: Arun Prakash Jana
|
# Author: Arun Prakash Jana
|
||||||
|
@ -8,6 +8,6 @@
|
||||||
IP=`curl -s ifconfig.me`
|
IP=`curl -s ifconfig.me`
|
||||||
|
|
||||||
whois "$IP"
|
whois "$IP"
|
||||||
echo your IP address is "$IP"
|
echo your external IP address is "$IP"
|
||||||
|
|
||||||
read dummy
|
read dummy
|
||||||
|
|
Loading…
Reference in a new issue