Re: How do I set different JAVA_HOME for different users?
assuming you are running bash as shell, there are the startup files
for login and shell start.
>From man bash:
The systemwide initialization file, executed for login shells
The systemwide per-interactive-shell startup file
The personal initialization file, executed for login shells
The individual per-interactive-shell startup file
I have most of my personal preferences in ~/.bashrc .
export PS1='\u@\h:\W> '
So i guess it would be a good place to set
Have a nice day :)