Difference between .profile and .bash_profile on Snow Leopard

前端 未结 2 1214
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 22:30

I am going to set the path for mySQl on my computer (I\'m running Snow Leopard) but I see different instructions online.

Some say to change the .profile file and som

相关标签:
2条回答
  • 2020-11-30 22:56

    .profile works with sh or bash. However .bash_profile is bash-specific and will override .profile if present.

    0 讨论(0)
  • 2020-11-30 23:02

    I believe mac OS X environment checks .bash_profile, .bash_login, .profile in this order. It will run whichever is the highest in the hierarchy, so, if you have .bash_profile, it will not check .profile.

    0 讨论(0)
提交回复
热议问题