elvish_config/aliases/meteo.elv

11 lines
256 B
Plaintext
Raw Normal View History

2021-12-11 21:09:02 +00:00
edit:add-var meteo~ {|@argv|
use str
2024-06-16 10:18:51 +00:00
var city = 'Montbéliard'
if (> (count $argv) 0) {
set city = (str:join '' $argv)
}
var url = (printf 'wttr.in/%s?lang=fr' $city)
#curl --connect-timeout 2 $url
e:curlie -s --connect-timeout 2 $url
2020-03-13 14:03:36 +00:00
}