mirror of https://github.com/chubin/wttr.in
Also allow compression of server responsepull/250/head
parent
f3aca556e7
commit
d3b28cbf09
@ -1,5 +1,7 @@
|
||||
wttr()
|
||||
{
|
||||
# change Paris to your default location
|
||||
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Paris}"
|
||||
local request="wttr.in/${1:-Paris}"
|
||||
[ "$COLUMNS" -lt 125 ] && request+='?n'
|
||||
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
||||
}
|
||||
|
Loading…
Reference in new issue