Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No install tip for tree command #25

Open
soutys opened this issue Jan 6, 2015 · 5 comments
Open

No install tip for tree command #25

soutys opened this issue Jan 6, 2015 · 5 comments

Comments

@soutys
Copy link
Contributor

soutys commented Jan 6, 2015

Sometimes tree command is not installed by default.

RHEL / CentOS / Fedora Linux:
# yum install tree
Debian / Mint / Ubuntu Linux:
$ sudo apt-get install tree

To add @ http://django.carrots.pl/install.html

@sguermond
Copy link
Contributor

OSX (must have homebrew installed)

$ brew install tree

@qrees
Copy link
Contributor

qrees commented Mar 11, 2015

Thank you, we will update the scenario.

@adngdb
Copy link

adngdb commented Jun 14, 2015

I would suggest not overloading the scenario with non-native tools (it's always a pain to install something, and we don't want to have the students spend too much time on things that are not necessary), and simply remove the use of tree and replace it with some combination of ls or dir.

@soutys
Copy link
Contributor Author

soutys commented Jun 14, 2015

tree is a MSW built-in tool. With almost all linux distros you can use something like this:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
(from http://www.centerkey.com/tree/)
It works but it's a little bit hairy :)

@qrees
Copy link
Contributor

qrees commented Jun 16, 2015

@AdrianGaudebert maybe you can create pull request with the change? I think it is a good idea but I'm afraid this ticket might be forgotten for another few months...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants