Zsh报错: zsh: command not found:tree

来源:互联网 发布:淘宝店铺换ip有影响吗 编辑:程序博客网 时间:2024/05/22 02:27

一、问题描述


吧ubutnu默认的BASH替换成了Zsh,然后用tree显示一下目录结构就提示zsh: command not found:tree




二、解决方法


1、vi .bash_profile 
增加内容: 
export PATH=/bin:/usr/bin:/usr/local/bin:$PATH


2、source .bash_profile 
在.zshrc中添加一行: 
source ~/.bash_profile


之后就可以使用了。。。

0 0
原创粉丝点击