分享 / 0 / 0 / 创建于 4年前
修改 vim ~/.zshrc 文件,添加 2 行命令,然后重启命令行界面即可生效。
vim ~/.zshrc
source ~/.bash_profile source /etc/profile
zsh 默认没有读取 /etc/profile 和 ~/.bash_profile 下的配置文件,而一般 unix 环境都是读取该配置文件的,所以导致没有生效。
/etc/profile
~/.bash_profile
我要举报该,理由是: