How are command line commands stored in .bash_history?
The history size is controlled by the variables HISTFILESIZE and HISTSIZE (see man bash). The default value is 500. 

You must store these parameters in ~/.bash_profile

Example:

export HISTFILESIZE=5000
export HISTSIZE=5000