4 ms·
This is really neat... vim ~/.bashrc ``` alias weather='/usr/bin/curl wttr.in' ``` :wq and now: weather
by taf2 4y ago
This is really neat...
vim ~/.bashrc
```
alias weather='/usr/bin/curl wttr.in'
```
:wq
and now:
weather
- cercatrova 4y agoHeh, 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.
- behnamoh 4y agobut this curls the app each time you invoke it!
- cercatrova 4y agoYes? That's how it works, not sure what you mean.
- behnamoh 4y agoyou’re right. for a moment I thought the app is _installed_ using curl.
- Kim_Bruning 4y agoif 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