Skip to content

Commit

Permalink
Add faq about git bash history
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Oct 14, 2021
1 parent 890af7e commit f0876ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/editor/integrated-terminal.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,3 +556,11 @@ Unfortunately some issues cannot be automatically detected, if you experience is
"terminal.integrated.gpuAcceleration": "off"
}
```

### Git Bash isn't saving history when I close the terminal

This is a [limitation of Git Bash](https://github.com/microsoft/vscode/issues/85831#issuecomment-943403803) when using VS Code uses bash.exe (the shell) as opposed to git-bash.exe (the terminal). You can workaround this by adding the following to your `~/.bashrc` or `~/.bash-profile`:

```
export PROMPT_COMMAND='history -a'
```

0 comments on commit f0876ad

Please sign in to comment.