News for hackers. Stuff that matters.
Re:"tree" command on MacOSX by adamt on Saturday September 08, 2012 @05:25AM (#4492641)
And this is on the front page?! Apologies for the meta-discussion, but this highlights go me just how much HN has changed. This tutorial is simply download, untar, uncomment relevant (and labelled) lines of a makefile and type make.
Re:"tree" command on MacOSX by doe88 on Saturday September 08, 2012 @05:40AM (#4492666)
I think in this case it hit the front page simply because people like me didn't know this tree command and immediately found it useful. That it be trivial to install is not the main point I think.
Re:"tree" command on MacOSX by melling on Saturday September 08, 2012 @05:40AM (#4492665)
To get on the front page, you only need a few upvotes in a short period of time. I don't think anything has changed. At this moment, it only has 6 votes.

It is a nice command that people will find useful. Stuff like this should get a few votes.

Re:"tree" command on MacOSX by true_religion on Saturday September 08, 2012 @06:16AM (#4492705)
You only need to get a small amount of votes to appear on the frontpage, and its 3:14am now and 2:14am when you wrote that for HNs West Coast audience. I don't think there is much legitimate competition out there for this article.
Re:"tree" command on MacOSX by spobo on Saturday September 08, 2012 @06:33AM (#4492718)
Not only that but it's 10 times easier with Homebrew. So it's an incorrect article imo. Shouldn't make the frontpage. Especially with that title.
Re:"tree" command on MacOSX by joethompson on Saturday September 08, 2012 @04:53AM (#4492616)
Or, if you have Homebrew (http://mxcl.github.com/homebrew/) installed:

  brew install tree
Re:"tree" command on MacOSX by nicholassmith on Saturday September 08, 2012 @05:14AM (#4492625)
Amazingly (and the comments on his blog also seem to jump on this), he does acknowledge that you can do it with a package manager. There's advantages to learning how to build something like this from source.
Re:"tree" command on MacOSX by cstuder on Saturday September 08, 2012 @05:23AM (#4492640)
Only in this case the learning effect isn't that great, because he doesn't explain the (to me) most confusing part: Why is the edit of the make file necessary? Isn't make responsible for choosing the right configuration settings for the current environment?
Re:"tree" command on MacOSX by darklajid on Saturday September 08, 2012 @05:46AM (#4492674)
No. The usual three step installation from source is

1. configure

2. make

3. sudo make install

Note the absence of 1, which would usually perform these kinds of things (checking for prerequisites, for example).

Re:"tree" command on MacOSX by joethompson on Saturday September 08, 2012 @05:20AM (#4492638)
True, learning how to build things from source yourself is definitely useful, I probably wouldn't be using Homebrew if I wasn't comfortable with that first. It's definitely advantageous to be able to organise/upgrade everything via it though.
Re:"tree" command on MacOSX by mathieuh on Saturday September 08, 2012 @05:55AM (#4492682)
Useful `tree` aliases:

    alias l1 'tree --dirsfirst -ChFL 1'
    alias l2 'tree --dirsfirst -ChFL 2'
    alias l3 'tree --dirsfirst -ChFL 3'
    alias l4 'tree --dirsfirst -ChFL 4'
    alias l5 'tree --dirsfirst -ChFL 5'
    alias l6 'tree --dirsfirst -ChFL 6'
Re:"tree" command on MacOSX by gbin on Saturday September 08, 2012 @05:40AM (#4492663)
Front page !? No offense but it is a brogrammer-class tip to be able to compile something on a mac...
Re:"tree" command on MacOSX by gbin on Saturday September 08, 2012 @05:41AM (#4492668)
# emerge tree

;)

Re:"tree" command on MacOSX by chj on Saturday September 08, 2012 @04:55AM (#4492618)
Very good utility. Thanks for the tip.