Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- wttr()
- {
- # change Paris to your default location
- local request="wttr.in/${1-Sao+Paulo}?1Fq"
- [ "$(tput cols)" -lt 125 ] && request+='?n'
- curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
- }
- wttr
Advertisement
Add Comment
Please, Sign In to add comment