在 ~/.bash_profile 中增加一条alias命令
<code>alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"</code>
方式2
brew install tree
ps. * 如果 ~/ 目录下没有.bash_profile 就新建一个*
*第二种方式 我暂时没有成功 *
在 ~/.bash_profile 中增加一条alias命令
<code>alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"</code>
方式2
brew install tree
ps. * 如果 ~/ 目录下没有.bash_profile 就新建一个*
*第二种方式 我暂时没有成功 *
本文标题:mac 增加 tree 命令
本文链接:https://www.haomeiwen.com/subject/tgkgcttx.html
网友评论