mac自己定义tree命令

编辑文件:

vim ~/.bash_profile


在文件末尾追加:

alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"


应用配置:

source ~/.bash_profile

原文地址:https://www.cnblogs.com/gavanwanggw/p/6962533.html