4 ms·
The first one is just curl wttr.in. Which is IMO easier to remember.
by swiley 9y ago
The first one is just curl wttr.in. Which is IMO easier to remember.
- eof 9y agothat's easier to remember than 'weather' for getting the weather?
- tomswartz07 9y ago`function weather() { curl "http://wttr.in/$1";}` http://wttr.in/$1";}` Not sure why it needs to be more complicated than that.
- aaronchall 9y agothe function keyword is unnecessary - removing it makes the function creation more cross-compatible with different shells.