You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually normal unix/linux behaviour, which MSYS2 is faithfully emulating on Windows. The typical workaround I've seen is to add export PROMPT_COMMAND='history -a' to your bash initialization file(s). It looks like Git Bash launches BASH as a logon shell, so ~/.bash_profile is most likely where you want to do this.
This causes the history -a command to be run every time the shell prompt is displayed, which flushes pending updates to the file.
Setup
defaults?
to the issue you're seeing?
None
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
N/A
Bash command history saved immediately, regardless of how the shell is closed.
Bash command history is only saved on a graceful exit. Not on window close, which means not when Windows updates cause a reboot.
URL to that repository to help us with testing?
N/A
The text was updated successfully, but these errors were encountered: