zsh terminal without re-setting the alias alias source

Because using zsh, rather than bash, so even after modify ~ / .bash_profile, reopen the closed terminal still need to re-use the source command.

Permanent solution is as follows:

vim ~/.zshrc

Edit mode, the first input line:

test -f ~/.bash_profile  && source ~/.bash_profile

Then save and exit, then re-source it to make changes to take effect

source ~/.zshrc

Guess you like

Origin www.cnblogs.com/liuhuan086/p/11913789.html