4 ms·
I use this alias for tree: alias tree='_tree(){ ([ -z "$1" ] || \cd $1 2>/dev/null && \find . -print | sort | sed -e '\''1s/./┬/'\'' -e '\''s;[^/]/;│ ;g;s;│
by chilicuil 11y ago
I use this alias for tree:
alias tree='_tree(){ ([ -z "$1" ] || \cd $1 2>/dev/null && \find . -print | sort | sed -e '\''1s/./┬/'\'' -e '\''s;[^/]/;│ ;g;s;│ \([^│]\);├── \1;g'\'';)}; _tree'
On Unix systems who doesn't have it
- stefanmaric 11y agoHey awesome! I usually have to install the `tree` package for that. But `ntee` reassembles `tee`, not `tree`. :)