-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Pane history not being saved (GitBash) #11697
Comments
I don't know if it is the correct thing to do, but I created a file called
Per this answer: https://stackoverflow.com/a/10901227 And now I can access recent command history. |
Weird. That sure is interesting. I wonder if the history gets sabed when you Glad you got this sorted out though! |
just fyi - i tested and if i type however that is not desired behaviour as i'd like to retain all the panes in their defined positions when i next open the app. doing the above steps requires resetting up panes when re-opening the app. |
just updating that this is still happening as at 15/04/22. i am now running it on a new laptop and again found myself searching for "windows terminal preview not saving history". |
any idea why this workaround is actually needed? having to change your bash history mode to save on every command seems overkill. the problem seems to me to be that Windows Terminal is not exiting cleanly the session when you use the UI. if i do Weird thing is that I have WSL2 configured and that one persists the history, but the one for git bash does not seems to be similar to microsoft/vscode#39877 where indeed VScode is not exiting the session cleanly |
I'm gonna reopen this for triage again. Thanks! |
@DHowett I had a look at that the problem of Terminal not persisting Git Bash history while ago as well and wrote down my thoughts here. TL;DR: it appears that |
Thanks for the investigation! We're looking at some other teardown issues... idly I wonder if #14282 will help. 😄 |
Just noting, I have switched to another PC and found myself googling this issue again:
The environment is:
I got it working by doing the workaround I posted above on 06/11/21. Someone down-thumbed that post though, so maybe it's not a good thing to do 😢 |
Windows Terminal version (or Windows build number)
Windows 10 , Version 21H1 (OS Build 19043.1288)
Windows Terminal Preview Version: 1.12.2931.0
Other Software
Git 2.33.1
Steps to reproduce
I have three Git Bash panes in my Windows Terminal Preview setup.
I close Windows Terminal Preview by clicking the
X
button in top right of application.When I re-open, my most recent history is not accessible in any of these three panes (ie pressing the up and down arrows on the command line).
It seems to have saved history from before I installed Windows Terminal Preview.
I have a
.bash_history
file inC:\Users\Me
and I can see the history entries in that file.I don't seem to have a
.bash_profile
file in that location (as related answers on stack overflow have suggested looking at).Expected Behavior
No response
Actual Behavior
See
Steps to reproduce
section.The text was updated successfully, but these errors were encountered: