I've been trying to work out how to edit the bash profile for the login shell in Ubuntu 18.04. Being new to linux and the forum being my friend, i found that it is located in .profile
as oppose to bash_profile
previously. I'm not sure which profile i should be amending as i cannot find bash_profile
.
I'm trying to add a line for virtualenvwrapper so that it can be sourced every time a new terminal session is launched but it isn't working.
nano .profile
Then adding...
source .local/bin/virtualenvwrapper.sh
to the end
Saved and exited but it doesn't work. Have i missed something or do i have to add anything in the script?
Thanks as always.
bash_profile
but cannot find this. So i presumed this would be.profile
? – Maverick32 Mar 31 '19 at 10:27~/.bash_profile
, it will be read in preference to~/.profile
- if you don't, then~/.profile
will be used. Neither will be used for a non-login shell - which is typically what is executed by terminal emulators (not sure whether that's relevant here - it depends what you mean by "terminal session") – steeldriver Mar 31 '19 at 13:23