config.phundrak.com/fishfunctions/we.fish

8 lines
173 B
Fish
Raw Normal View History

2019-07-21 01:27:31 +00:00
function we -d "Get weather at location"
if count $argv > /dev/null
curl http://wttr.in/~$argv[1]
else
curl http://wttr.in/Aubervilliers
end
end