HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by swiley | Hacker News Reader
Full thread
swiley
·
The first one is just curl wttr.in. Which is IMO easier to remember.
View on HN
eof
·
that's easier to remember than 'weather' for getting the weather?
tomswartz07
·
`function weather() { curl "
http://wttr.in/$1
";}`
Not sure why it needs to be more complicated than that.
aaronchall
·
the function keyword is unnecessary - removing it makes the function creation more cross-compatible with different shells.
Reply on news.ycombinator.com