当前位置:网站首页>How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file

How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file

2022-07-05 02:43:00 French red wine sweet

problem :

I have read so many suggestions about, not putting your customization aka commands in ".profile" file. I've read a lot about not putting custom alias commands in “.profile” Recommendations in the document .Rather, create a .bash_profile for yourself and add your alias and etc. contrary , Create one for yourself .bash_profile And add your alias, etc .

But,when I open the new terminal, if there is only .bash_profile, OS X is not exporting/sourcing the commands mentioned in it. however , When I open a new terminal , If only .bash_profile,OS X Will not export / Purchase the order mentioned therein .I have to manually source the .bash_profile. I have to get it manually .bash_profile.

If I create .profile file, on opening a new terminal, all my commands in .profile are executed and will be available readily. If I create .profile file , When opening a new terminal , I am here .profile All commands in will be executed and can be used at any time .

Could you please help me in understanding, how does it works? Can you help me understand , How it works ?Also, when to use .bashrc/.profile/.bash_profile files. Besides , When to use .bashrc/.profile/.bash_profile file .

Thanks! thank you !


Solution :

Reference resources : https://stackoom.com/en/question/1Glj9
原网站

版权声明
本文为[French red wine sweet]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140859392697.html