mac环境变量不生效问题

参考:https://blog.csdn.net/qq_18505715/article/details/83276208

在 ~/.zshrc 中添加

source ~/.bash_profile 

比如mac的git命令补全不生效,可以参考如下文章添加

https://blog.csdn.net/WinWill2012/article/details/71774461

source ~/.git-completion.bash

调整mac终端颜色和全路径显示

export PS1="%n@%m %0~ $ "

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
原文地址:https://www.cnblogs.com/tonglin0325/p/12314122.html