Ken Schneider - openSUSE wrote:
Right -- if I sudo bash -i , I don't have the problem -- everything is preserved.
But either sudo su -p OR su -p Both reset parts (if not all of) my 'env'
If you want to maintain your login env just plain su will do that. I vert highly recommend you DON'T. You will mess up your login.
How does it mess up your login? I don't like using su (also, my 'su' is aliased to 'su -p') by itself -- as I have to type in the password. Thus, I usually use sudo, which used to require a command, so sudo su, was the shortest way to a root prompt while maintaining my environment. Now, sudo has an option that can shortcut that, but old habits have me typing in sudo su about 70% of the time, But that's resetting key variables (majority are NOT changed)... LS_OPTIONS & PATH PS1 REMOTEHOST DISPLAY The ones that cause things to break: PS1, REMOTEHOST, DISPLAY LS_OPTIONS and PATH changes don't seem to be a problem but clearing REMOTEHOST and changing DISPLAY are bad. The change to PS1 chases the window title to no longer be updated with the host and path. ---- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org