elvish_config/aliases/meteo.elv

7 lines
175 B
Plaintext
Raw Normal View History

2021-12-11 21:09:02 +00:00
edit:add-var meteo~ {|@argv|
use str
var url = (printf 'wttr.in/%s?lang=fr' (str:join '' $argv))
#curl --connect-timeout 2 $url
e:curlie -s --connect-timeout 2 $url
2020-03-13 14:03:36 +00:00
}