How can I reload .bash_profile from the command line?
.bash_profile
(如何从命令行重新加载.bash_profile ?)
(我可以通过退出并重新登录来让shell识别对.bash_profile的更改,但我希望能够按需执行此操作。)
Simply type source ~/.bash_profile
source ~/.bash_profile
(只需输入source ~/.bash_profile)
Alternatively, if you like saving keystrokes you can type . ~/.bash_profile
. ~/.bash_profile
(或者,如果您想保存击键,可以键入. ~/.bash_profile) . ~/.bash_profile
2.1m questions
2.1m answers
60 comments
57.0k users