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.
$ echo "export PATH="$HOME/.local/bin/:$PATH"" >> .profile
and then log in and out. You will now be able to run$ virtualenvwrapper.sh
from the Terminal.PATH="$HOME/bin:$PATH"
. That line adds the files in ~/bin into your shell so you can execute them just like other programs installed on your system. I would also rename virtualenvwrapper.sh to virtualenvwrapper because other wise ever time you run it from the terminal it will have the .sh at the end. It looks more like the other commands you have installed if you remove the file extension. Not to worry though, removing the file extension dose not change how the program is executed. I have a few scripts installed like this and this is what I found works.