wttr.in/share/bash-function.txt

8 lines
205 B
Text
Raw Normal View History

2017-03-06 07:13:46 +00:00
wttr()
{
# change Paris to your default location
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
}