Originally Posted by martinfst
When you are on the system as root (either by logging in directly or by 'su -' or similar), use the command
. It will take you to the home dir of the effective user. Then
edit and you're done.
If you login as a regular user 1st and the 'upgrade' yourself, you can also edit the .bashrc file of the regular user. Environment variables are promoted to sub-shells.
I had to change a little bit to get it working under opensuse 10.2
Log off and on and it works