Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using git-bash on Windows 7. I'd like to see a tree of the current directory. However:

jcollum@DEVELOPER01 ~/Dev/express_coffee            
$ tree .                                            
sh.exe": tree: command not found

OK, so I don't have the tree command. How do I install it? I found an article but it was for Macs.

share|improve this question
    
git-bash is really just a cut down version of Cygwin. Best way to go is install Cygwin from cygwin.com, and use the package manager there to install tree or whatever package it's in (if it exists). –  ÃŁŁǫǛȉЖΦΤїҪ Jan 14 '13 at 16:35
1  
@allquixotic actually these days it's mingw –  jcollum Jan 14 '13 at 16:47
add comment

2 Answers

git-bash is really just a cut down version of mingw. Install Cygwin from cygwin.com, and then either use the package manager to install 'tree' or whatever package it's in, or if it doesn't exist, then install gcc, download the tree source from here:

http://mama.indstate.edu/users/ice/tree/

Then follow the instructions in the INSTALL file (make, make install)

share|improve this answer
    
So is it impossible in minggw? –  Jen S. Jan 21 at 9:27
1  
I'd imagine it isn't too hard from mingw, but isn't possible from your default git-bash prompt, because I imagine that git-bash doesn't come with tools you need like a C/C++ compiler. But you could try installing mingw, making sure to include gcc, and following the instructions in the tree INSTALL file. I have used mingw to compile things like this on Windows in the past, so this part is definitely possible. –  Jonathan Hartley Jan 22 at 9:30
add comment

You could also use "cmd //c tree" to use window's tree

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.