我想将添加到该行下方的环境变量设置为~/.bash_profile,~/.profile但是它不起作用。
~/.bash_profile
~/.profile
export JBOSS_HOME=/Users/{USERNAME}/Desktop/jboss7
之后,退出终端并在执行echo $JBOSS_HOME任何操作时再次将其打开。
echo $JBOSS_HOME
Apple已将默认外壳程序更改为zsh。因此,你必须重命名你的配置文件。.bashrc现在.zshrc和.bash_profile现在.zprofile。
.bashrc
.zshrc
.bash_profile
.zprofile
由于许可问题,Apple从bash更改为zshell。thenextweb.com/dd/2019/06/04 / ...
如此棒的用户体验,如何在每次OS-X升级时中断我的开发设置
@ChrisHatton我一直在等待下一个更新,以便我可以中断当前的设置并再次从头开始创建所有内容,并期待下一个版本!
我正在使用bash,
.bashrc
已加载但未加载bash_profile
。我结束了加入[ -f ~/.bash_profile ] && source ~/.bash_profile
到.bashrc
和删除块,由产生的conda init bash
,在.bash_profile
该源.bashrc
。只是我有同样的问题吗?