Well, it may depend on your distro, other details in your files, and what exactly you want to do. If you want to make this take effect for all users, something like what you typed at the command line:
in /etc/profile or, if you just want it for yourself, putting it in ~/.bash_profile and/or ~/.bashrc.
I actually put
all in one go, but either works.