9 lines
193 B
Bash
Executable file
9 lines
193 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# change Paris to your default location
|
|
request="v2.wttr.in/$1"
|
|
[ "$(tput cols)" -lt 125 ] && request+='?n'
|
|
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
|
|
|
|