diff --git a/.bash_aliases b/.bash_aliases index 1664832..8bbd175 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -106,6 +106,9 @@ alias updatecalibre='sudo -v && wget -nv -O- https://raw.githubusercontent.com/k # Watch a DNS entry, see when it changes to a new value for example alias checkdns='watch -n1 dig ' +#weather(){ curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-}"|perl -ne '/([^<]+)/&&printf "%s: ",$1;/<fcttext>([^<]+)/&&print $1,"\n"';} +weather(){ curl -s "http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-Amsterdam}"|perl -ne '/<title>([^<]+)/&&printf "%s: ",$1;/<fcttext>([^<]+)/&&print $1,"\n"';} + # if you're really annoyed with a runaway process function fuck() { if killall -9 "$2"; then