provate ad eseguire:
curl wttr.in
oppure
curl it.wttr.in
oppure
curl wttr.in/Roma?format=3
oppure
curl wttr.in/:help
e adesso andate direttamente sul https://github.com/chubin/wttr.in
provate ad eseguire:
curl wttr.in
oppure
curl it.wttr.in
oppure
curl wttr.in/Roma?format=3
oppure
curl wttr.in/:help
e adesso andate direttamente sul https://github.com/chubin/wttr.in
bello , grazie .
Grazie per la condivisione di questa chicca !
Non si finisce mai di imparare!
Grazie per averlo condiviso.
RM
Stupendo!
incredibile che ci sia ancora qualcuno che si diverta così in console… grazie, romulus!
Prova così:
export PS1="`curl -s wttr.in/Roma?format=1` | \u@\h \W]\$ "
export PS1="`curl -s wttr.in/Roma?format=3` | \u@\h \W]\$ "
export PS1="`curl -s wttr.in/?format=3` | \u@\h \W]\$ "
per i più smanettoni
wttr()
{
# change Paris to your default location
local -a city=('Roma' 'Sidney' 'Montreal') # inserite quante ne volete
local request="wttr.in/${1-${city$(shuf -i0-2 -n1)]}}?format=3"
# "$(tput cols)" -lt 125 ] && request+='?n'
curl -s -H "Accept-Language: ${LANG%_*}" --compressed "$request"
}
e dopo
export PROMPT_COMMAND='export PS1="(`wttr`)] $ "'
insomma sbizzarritevi
Bello !!! grazie per la condivisone