From 63c60e5fa3d36fde18b8d6cbd12f7219a6dda1ca Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Fri, 11 Mar 2011 20:32:46 -0600 Subject: [PATCH] Added "down4me" plugin --- plugins/base.plugin.bash | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/base.plugin.bash b/plugins/base.plugin.bash index 444c0f0..94b5e57 100644 --- a/plugins/base.plugin.bash +++ b/plugins/base.plugin.bash @@ -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}" @@ -13,9 +17,9 @@ function myip { # Make a directory and immediately 'cd' into it -function mkcd(){ - mkdir -p "$*" - cd "$*" +function mkcd() { + mkdir -p "$*" + cd "$*" } # Search through directory contents with grep -- 2.17.1