您的当前位置:首页正文

mac source .bash_profile 重启Iterm

来源:华拓网

问题原因:

.bash_profile在每次item启动的时候不会自动执行.

解决办法:

如果shell 是bash, 把

. ~/.bash_profile

追加到 ~/.bashrc 末尾.

如果是zsh, 就把. ~/.bash_profile

追加到~/.zshrc末尾.

因为这些shell工具,在打开的时候,会执行这些配置.