update bash command history in real time

I have problem with bash command history in Parrot OS. ~/.bash_history file doesn’t update in real time immediately. All the entire commands in that file are old commands a month ago. So if I was pressing UP in the terminal just old commands

Please fill out the support form