Put this into ~/.bashrc file of your account (if the file does not exist, you create it):
shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
In order for this to start working you need to log out and in again.
Put this into ~/.bashrc file of your account (if the file does not exist, you create it):
shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
In order for this to start working you need to log out and in again.