Unexpected backslash ( \ ) when opening in vscode terminal #12398
Labels
Resolution: duplicate
This issue or pull request already exists
Resolution: not our issue
Issue or pull request not related to Oh My Zsh
Describe the bug
I have git in my Windows 10. I installed zsh and was trying to add oh my zsh to give it new look.
Everything is fine except when I open Git Bash in terminal it adds a backslash before my prompt. I've added a screenshot below for reference.
Note: This is happening on my office laptop (windows 10). It also happened when I tried to do the same thing on my personal laptop (windows 10). Same scenario, same issue. This only happens when I open Git Bash in vscode terminal. It doesn't happen when I open Git Bash directly. Here is a screenshot of Git Bash opening directly
This only happens in Git Bash. I installed WSL Ubuntu and did the same thing, but there is no problem. When I open WSL ubuntu in vscode terminal, there is no backslash (as it should be).
This was happening for a long time on my personal laptop. Tried to find any solution, but didn't find anything regarding this issue so I thought may be it's my machine. But I got a new job and got a new laptop, same problem appears. That's when I knew something is off.
So, I was hoping is there any solution to this?
Steps to reproduce
OS: Windows 10
Expected behavior
This is WSL when opening in VS Code terminal
This is when I open Git Bash directly
This is how it should be
Screenshots and recordings
This is when I open Git Bash from VS Code terminal
OS / Linux distribution
Windows 10
Zsh version
5.9
Oh My Zsh version
master (668ca3a)
Terminal emulator
Git Bash
If using WSL on Windows, which version of WSL
None
Additional context
No response
The text was updated successfully, but these errors were encountered: