Skip to content

Instantly share code, notes, and snippets.

View devthiago's full-sized avatar

Thiago Alves Luiz devthiago

View GitHub Profile
@devthiago
devthiago / weather.sh
Last active February 28, 2016 00:40
Cool shell functions
# WEATHER INFO ------------------------------------------------------------
# Usage:
# $ weather [CITY_NAME]
# Examples:
# $ weather #returns current local weather
# $ weather "Porto Alegre" #returns Porto Alegre weather
function weather {
if [ -z "$1" ]; then
curl http://wttr.in/;