I remember in the past, we have two place to set env variables for Ubuntu
- Login shell - ~/.profile
- Non login shell - ~/.bashrc
But now according to the doc [1], they are not recommended anymore. And we should use ~/.pam_environment, but my understanding is this is for login shell, so how about non login shell?
Where should I use?