linux下修改.bash_profile立即生效的三种方法

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

. .bash_profile

source .bash_profile

exec bash --login

装了oh-my-zsh,iTerm2启动不再调用配置文件.bash_profile,而是直接调用.zshrc文件,导致某些配置的命令失效。解决办法是在.zshrc中添加source ~/.bash_profile即可。

转载于:https://my.oschina.net/happyran/blog/1563980

你可能感兴趣的:(linux下修改.bash_profile立即生效的三种方法)