CrushableMap CrushableMap
Bookmark

install the 'tree' utility?

Posted February 19th, 2019    1444   0   tree filesystem

Just a little request - could you please install the 'tree' utility by default? I can make do with the R option on ls, but the output of tree is usually exactly what I want to look at a downloads folder.

Thank you,

  • Paul

2 Replies

h3k
h3k

Rather than trying to get something installed globally have you considered just creating a bin directory in $HOME and putting any scripts you might need there?

This is a tree standin in bash that I find works ok, if you add $HOME/bin to your $PATH in your bashrc file then this works ok:
https://gist.githubusercontent.com/haz3k/190f3090b81c6b6f14adde694f48a2a8/raw/btree.sh

TheNoob
TheNoob
  1. curl https://gist.githubusercontent.com/haz3k/190f3090b81c6b6f14adde694f48a2a8/raw/btree.sh -o tree
  2. mv tree .local/bin/
  3. chmod 744 .local/bin/tree
  4. --> restart ssh shell

tree files/downloads