I had a .profile file that I was reading and using aliases from in my terminal, but at some point the aliases stopped working for no clear reason (other commands were still working).
Thinking to make a quick fix, I deleted (rm) and recreated my .profile file in my user directory. There are no bash_profiles or others in existence that I can see, at leasts in that directory.
The new .profile did not work. I tried restarting the terminal and the computer.
Now, the commands that worked in the original .profile are still run although I cannot find the file, and the new .profile gives:
No such file or directory(last half of a filename sourced here) and: command not found messages
The .profile file only contains path updates, aliases, and files to source. Trying to source the .profile file also gives the error messages above.
However, typing in the path updates, aliases, and files to source directly into the terminal by copying them from the .profile file works fine.
Help?
.bash_profile
or.bash-login
(or.login
) file. Moreover, if I manually executesource ~/.profile
in Terminal, then the aliases defined in~/.profile
do take effect. – Bonnibelle