vagnerfonseeca

ver-clima.sh

Apr 8th, 2026
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | Source Code | 0 0
  1. #!/bin/bash
  2. wttr()
  3. {
  4.     # change Paris to your default location
  5.     local request="wttr.in/${1-Sao+Paulo}?1Fq"
  6.     [ "$(tput cols)" -lt 125 ] && request+='?n'
  7.     curl -H "Accept-Language: ${LANG%_*}" --compressed "$request"
  8. }
  9.  
  10. wttr
  11.  
Advertisement
Add Comment
Please, Sign In to add comment