Add this to your .bashrc: weather(){ curl -s “http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=${@:-“$1”}”|perl -ne ‘/<title>([^<]+)/&&printf “x1B[0;34m%sx1B[0m: “,$1;/<fcttext>([^<]+)/&&print $1,”n”‘;} From the prompt type: weather 80304 […]

I wanted to see the current weather when I opened the terminal so I looked around and found a great […]