Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

export PATH not saving

Tags:

bash

I'm trying to install the Google SDK

I type:

export PYTHONPATH=$PYTHONPATH:/Users/morganallen/Dropbox/google_appengine

then:

echo $PATH

And I see:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/morganallen/Dropbox/google_appengine

But when I quit terminal and re-open it and type echo $PATH I only see:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Why isn't it saving?

I've seen other answers mentioning a .bashrc file, but I can't find mine? Not sure what to do.

like image 643
Morgan Allen Avatar asked Jul 27 '26 15:07

Morgan Allen


1 Answers

If you type that into the command line, it only applies for the current session (until you close the bash window). Instead, save that line of code into your .bash_profile and it should work for every single session.

like image 80
Neil A. Avatar answered Jul 30 '26 08:07

Neil A.