Hacker News new | past | comments | ask | show | jobs | submit login

This is really neat...

vim ~/.bashrc

``` alias weather='/usr/bin/curl wttr.in' ``` :wq

and now:

weather




Heh, I did the exact same thing. I actually did

    alias weather="curl wttr.in && curl v2.wttr.in && curl v3.wttr.in"
so that it shows me the temperature chart and map as well. Well, v3's map isn't working so I commented that out for now but they say it should work in the future.


if you do

curl wttr.in/:help

Tou get a help document, which also shows you a way to get a suggested bash function; to wit:

curl wttr.in/:bash.function


but this curls the app each time you invoke it!


Yes? That's how it works, not sure what you mean.


you’re right. for a moment I thought the app is _installed_ using curl.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: