當(dāng)我們在修改.bash_profile文件后砸烦,發(fā)現(xiàn)每次都需要 source .bash_profile才可以生效康震,但是退出終端后就失效了。這時(shí)候有可能是因?yàn)槟闶褂玫牟皇莔ac默認(rèn)的shell,mac默認(rèn)的shell為bash售睹。
可以先修改用戶的shell,使用命令
chsh -s /bin/bash
更換shell
當(dāng)我們在修改.bash_profile文件后砸烦,發(fā)現(xiàn)每次都需要 source .bash_profile才可以生效康震,但是退出終端后就失效了。這時(shí)候有可能是因?yàn)槟闶褂玫牟皇莔ac默認(rèn)的shell,mac默認(rèn)的shell為bash售睹。
可以先修改用戶的shell,使用命令
chsh -s /bin/bash
更換shell