Geoffrey Frogeye
1f61ceb395
They're a bit slower to start :(. Hopefully this is something that flakes will help with, otherwise I'll find another way.
11 lines
272 B
Plaintext
Executable file
11 lines
272 B
Plaintext
Executable file
#!/usr/bin/env nix-shell
|
|
#! nix-shell -i bash --pure
|
|
#! nix-shell -p bash curl ncurses
|
|
|
|
# change Paris to your default location
|
|
request="v2.wttr.in/${1-Amsterdam}"
|
|
[ "$(tput cols)" -lt 125 ] && request+='?n'
|
|
curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
|
|
|
|
|