编辑文件:
vim ~/.bash_profile
在文件末尾追加:
alias tree="find . -print | sed -e ‘s;[^/]*/;|____;g;s;____|; |;g‘"
应用配置:
source ~/.bash_profile
mac自己定义tree命令
原文:http://www.cnblogs.com/gavanwanggw/p/6962533.html