Mac Terminal Error: - bash: /Users/tim/.profile: no such file or directory

Each time I open a new terminal window, I see the following.

-bash: /Users/tim/.profile: No such file or directory 

I have no idea why this is happening or where to look to fix it; my profile is in /Users/tim/.bash_profile not /Users/tim/.profile

Any thoughts on how to fix this problem?

+11
source share
2 answers

This happened to me, and I noticed that at the top of my .bash_profile it had:

 source ~/.profile 

I understand that on MacOS / OS X .bash_profile given priority over .profile , so the last file is not required.

To fix, I simply deleted source ~/.profile from the top of the file.

Hope this helps.

Edit: The original poster commented that it simply created an empty .profile to solve this problem.

+24
source

I ran into the same problem today, I think, because I use a cleanup application, and the application believed that this file was a waste of space, so I deleted it. touch ~/.profile helps me.

0
source

Source: https://habr.com/ru/post/1258550/


All Articles