The AIX user I su to daily has no history from SSH session to SSH session. I'm using the bash shell because the Korn shell alternative does not autocomplete which is an even bigger nuisance.
I already put the lines in the .profile file in the home folder:
export HISTSIZE=10000 export EXTENDED_HISTORY=ON
I don't have the root password to modify /etc/profile.
When I do
I get /users/me/.bash_history instead of /users/user_I_su_to/.bash_history
I also tried adding to file /users/user_I_su_to/.bash_history the line: export HISTFILE=/usagers/user_I_su_to/.bash_history
Naturally I logged out of my SSH sessions and back in to apply.