当我们在修改.bash_profile文件后,发现每次都需要 source .bash_profile才可以生效,但是退出终端后就失效了。这时候有可能是因为你使用的不是mac默认的shell,mac默认的shell为bash。

可以先修改用户的shell,使用命令
chsh -s /bin/bash
更换shell

相关文章:

  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-04-14
  • 2021-04-25
  • 2022-12-23
  • 2021-08-16
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-07-20
  • 2021-06-10
  • 2022-12-23
相关资源
相似解决方案