-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Vs code git bash terminal always forgets it's history after re-open #37273
Comments
All the history is managed by the shell, in this case git bash. If you launch a single shell and exit it, the history will likely be retained. However it can be less reliable when there are multiple shells of the same type, but this happens regardless of the terminal as far as I'm aware. |
How come it is only retained when I open git bash directly and is never retainer in vs code? I'll do some more testing but s far I have never seen vs code => git bash retain anything. although opened manually it always seems to retain history |
@joelharkes it's possible there's an issue on our side but it seems unlikely as we're just launching the git bash executable and that's accepting input and telling us the output. Since the git bash executable is the thing handling the input, it should be persisting the history somehow. |
Seems to depend on how you close the bash: It also seems my projects keep running when i close vs-code (and i started the project running it seems vs-code does not close integrated terminals properly? |
A solution would be to either properly close git-bash on vs code close. or enable the use of executing commands (through settings) when integrated shell/vscode closes. the command that would be needed to execute is: |
Steps to Reproduce:
ls
The command shown is
ls
(history from git bash instead of git bash from vs code session).I Expect either:
The text was updated successfully, but these errors were encountered: