Hacker News new | ask | show | jobs
by devjam 1293 days ago
I had the same thought; this is in my shell RC:

    alias weather='f() { curl wttr.in/${1:-sydney} };f'
2 comments

Interesting -- why do you define an alias that defines and then immediately calls a function instead of just defining `weather` as the function itself?

         echo yourcity | nc graph.no 79
or

         finger yourcity@graph.no