Added "down4me" plugin

pull/45/head
Mark Szymanski 2011-03-11 20:32:46 -06:00
parent 63a00c757d
commit 63c60e5fa3
1 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,10 @@ function ips {
ifconfig | grep "inet " | awk '{ print $2 }'
}
function down4me() {
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g'
}
function myip {
res=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
echo "Your public IP is: ${bold_green} $res ${normal}"