Your .profile
should be loaded when you log in, not in each terminal. Its purpose is to define environment variables and other settings for the whole session (including your window manager and any program you start from it such as Emacs). It's normal that ~/.profile
isn't read when you start a terminal: it's rare to need to define environment variables then. Your shell has an initialization file (.bashrc
or .zshrc
or similar file), usually used to define functions and aliases and set shell options.
On .profile
, its cousins and how they are loaded, read this answer and the ones I link to. All systems have a way to set environments variables when you log in, but there is some variation as to how (a lot of environments read .profile
, but some such as yours don't).
.profile
to be read when you log in. How to do that is very dependent on your operating system, login method, desktop environment, etc. Most do it automatically, but since yours doesn't you need to do some set up. So tell us about what your OS/DM/DE/… are. – Gilles 'SO- stop being evil' Sep 14 '11 at 23:45.profile
– Startec Apr 13 '17 at 20:19