Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

that's easier to remember than 'weather' for getting the weather?


`function weather() { curl "http://wttr.in/$1";}`

Not sure why it needs to be more complicated than that.


the function keyword is unnecessary - removing it makes the function creation more cross-compatible with different shells.




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

Search: