-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL doesn't "remember" last session commands #2066
Comments
Did you happen to have multiple terminals open in parallel? In that case see https://unix.stackexchange.com/questions/1288/preserve-bash-history-in-multiple-terminal-windows Did you happen to close bash in a non-graceful way, e.g. closing the window instead of writing
|
@CherryDT , "it is bash which is managing the history, not WSL" -- that's true, but WSL is managing bash :-) For example, WSL could attempt to close bash gracefully when the window is closed, so that it has a chance to save its history. |
@therealkenc Thank you. Typing |
It appears from a cursory test that this was addressed as a happy side-effect of "Allow processes to run without an active terminal" (#709 et al) and possibly #2496. Going to mark as fixedinsiderbuilds 17046. If anyone is still seeing the lost history problem on insiders, ping the thread and I'll take a second look. |
My build is 15063.158.
I ran different commands like ssh user@ip, I do some other actions, close the session and start another one later in that day but can't print commands from previous session with the arrows (top/button).
For some reason, WSL doesn't remember the commands from previous sessions.
I should note that I didn't felt such behavior in the last versions of Bash...
The text was updated successfully, but these errors were encountered: