elvish_config/aliases/meteo.elv

7 lines
175 B
Plaintext

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
}