aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ipinfo
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ipinfo')
-rwxr-xr-xplugins/ipinfo13
1 files changed, 13 insertions, 0 deletions
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