edit:add-var send-sms~ {|@argv| use str var api = https://smsapi.free-mobile.fr/sendmsg var param = (cat $E:HOME/.config/elvish/private/freesms.json | from-json) var msg = (str:join '%20' $argv) var url = (printf '%s?user=%s&pass=%s&msg=%s' $api $param[user] $param[password] $msg) #put $url e:curl $url }