Closed mehdiMj-ir closed 1 year ago
That's the intentional behavior configured by the following line:
If you would like to suppress the behavior (i.e., if you would like to entirely replace the command history saved in ~/.bash_history
(or $HISTFILE
) with that of the last Bash session no matter what history other sessions have saved in the past), you can add the following line after source "$OSH"/oh-my-bash.sh
in your ~/.bashrc
:
shopt -u histappend
I use this on my servers too and looks like I have to append shopt -u histappend
to all of my .bashrc
files but hey thanks for your kind response :)
Hi dear developer. I use this app on my bash everyday and I'm thankful :) Recently there is a bug in clearing history and I'd like to report. To reproduce the bug:
ls
andcd
history -c
to clear bash historyhistory
you will see command which supposed to be clear.