Profile Of A Classic Mexican Dish
Feb 27, 2019the original sh sourced .profile on startup. Bash will try to source .bash_profile first, but if that doesn't exist, it will source .profile. The .profile dates back to the original bourne shell known as sh.
Jul 25, 2024if i run source ~/.profile it does get added to my path. I definitely don't have a ~/.bash_login or ~/.bash_profile -- so why would bash not read my local .profile? It says that the /etc/profile file sets the environment variables at startup of the bash shell.
The /etc/profile.d directory contains other scripts that contain application-specific startup files,. The one possible exception is /etc/profile and .profile, which may be used by multiple different shells (including at least sh and bash). Well i tried your way for creating a custom function of printing it's argument, but even if i add that function in .bash_profile then also i have to do source ~/.bash_profile everytime i open.