dotfiles/.config/fish/functions/we.fish

8 lines
179 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
2019-08-28 15:31:53 +00:00
curl http://v2.wttr.in/~$argv[1]
2019-07-21 01:27:31 +00:00
else
2019-08-28 15:31:53 +00:00
curl http://v2.wttr.in/Aubervilliers
2019-07-21 01:27:31 +00:00
end
end