Added a function to get your public IP address
diff --git a/functions/base.funtions.bash b/functions/base.funtions.bash
index bbb6f2f..f0544c6 100644
--- a/functions/base.funtions.bash
+++ b/functions/base.funtions.bash
@@ -1,13 +1,14 @@
#!/bin/bash
-function rh {
- history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
-}
-
function ips {
ifconfig | grep "inet " | awk '{ print $2 }'
}
+function myip {
+ res=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
+ echo "Your public IP is: ${LIGHT_GREEN} $res ${NORMAL}"
+}
+
# View man documentation in Preview
pman () {