Added a function to get your public IP address

This commit is contained in:
Robert R Evans
2010-10-02 15:23:57 -07:00
parent 1081b7b2e0
commit 070107ab95
5 changed files with 19 additions and 23 deletions

View File

@@ -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 () {