In your .profile put in the following. YOu can have your HISTSIZE as large
as you want. It will be put in your HISTFILE /.sh_history
# Set command history
HISTFILE=/.sh_history
export HISTFILE
HISTSIZE=2000
export HISTSIZE