From e1d8adce2f910caf3009e2a35032e76de73ba852 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 20 Apr 2019 13:07:04 +0530 Subject: Plugin ipinfo: fetch IP address and whois info --- plugins/ipinfo | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 plugins/ipinfo (limited to 'plugins/ipinfo') diff --git a/plugins/ipinfo b/plugins/ipinfo new file mode 100755 index 0000000..9ee1ca9 --- /dev/null +++ b/plugins/ipinfo @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +# Description: Shows the IP address and whois information. +# +# Shell: POSIX compliant +# Author: Arun Prakash Jana + +IP=`curl -s ifconfig.me` + +whois "$IP" +echo your IP address is "$IP" + +read dummy -- cgit v1.2.3-70-g09d2