I wrote a bash script to add to my $PYTHONPATH. My .sh file has the following:
sudo echo export PYTHONPATH=$PYTHONPATH:/path/to/new/python/module >> ~/.bashrc
What I want to be added to my .bashrc is:
PYTHONPATH=$PYTHONPATH:/path/to/new/python/module
However I can only get it to add:
PYTHONPATH=/all/other/python/modules/already/on/path:/path/to/new/python/module
I don't want the actual $PYTHONPATH value to be added to my .bashrc, just the variable name. Please help!