1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Tryout with cli weather forecast

This commit is contained in:
2015-06-12 16:07:53 +02:00
parent 9694a3350f
commit 370794eb6f

View File

@@ -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=${@:-<YOURZIPORLOCATION>}"|perl -ne '/<title>([^<]+)/&&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