2017-03-06 07:13:46 +00:00
|
|
|
wttr()
|
|
|
|
{
|
|
|
|
# change Paris to your default location
|
2018-12-13 21:34:07 +00:00
|
|
|
local request="wttr.in/${1:-Paris}"
|
|
|
|
[ "$COLUMNS" -lt 125 ] && request+='?n'
|
|
|
|
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
2017-03-06 07:13:46 +00:00
|
|
|
}
|