in my ~/.bashrc
in Linux , I have a line that adds some paths to PATH
, something like:
PATH=~/mydoc:~/mypython:"$PATH"
The purpose of adding ~/mypython
is to use my self-installed python, rather than the system's default one. But now I would like to change back to use the system's default python. Without logout, is there a simple way to remove ~/mypython
from the value of PATH
?
~/.bashrc
is automatically executed --- this is how yourPATH
is built in the first place. Just remove~/mypython
from your~./bashrc
and execute it:. ~/.bashrc
. – gardenhead Jan 06 '16 at 02:31