美文网首页
mac source .bash_profile 重启Iterm

mac source .bash_profile 重启Iterm

作者: Recoder | 来源:发表于2016-03-09 16:40 被阅读1158次

问题原因:

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

解决办法:

如果shell 是bash, 把

. ~/.bash_profile

追加到 ~/.bashrc 末尾.

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

追加到~/.zshrc末尾.

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

相关文章

网友评论

      本文标题:mac source .bash_profile 重启Iterm

      本文链接:https://www.haomeiwen.com/subject/kyxtlttx.html