Skip to content
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

Unexpected backslash ( \ ) when opening in vscode terminal #12398

Closed
prime0x2 opened this issue May 7, 2024 · 1 comment
Closed

Unexpected backslash ( \ ) when opening in vscode terminal #12398

prime0x2 opened this issue May 7, 2024 · 1 comment
Labels
Resolution: duplicate This issue or pull request already exists Resolution: not our issue Issue or pull request not related to Oh My Zsh

Comments

@prime0x2
Copy link

prime0x2 commented May 7, 2024

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.

image

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

image

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

  1. Install Git Bash to the system
  2. Install ZSH, VS Code
  3. Install Oh My ZSH
  4. Open VS Code terminal (By default it opens powershell)
  5. From VS Code terminal list, open Git Bash

Expected behavior

This is WSL when opening in VS Code terminal

image

This is when I open Git Bash directly

image

This is how it should be

Screenshots and recordings

This is when I open Git Bash from VS Code terminal

image

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

@prime0x2 prime0x2 added the Bug Something isn't working label May 7, 2024
@mcornella
Copy link
Member

Hi this is a bug in VS Code version, see #11765.

@mcornella mcornella added Resolution: not our issue Issue or pull request not related to Oh My Zsh Resolution: duplicate This issue or pull request already exists and removed Bug Something isn't working labels May 7, 2024
@mcornella mcornella closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: duplicate This issue or pull request already exists Resolution: not our issue Issue or pull request not related to Oh My Zsh
Projects
Archived in project
Development

No branches or pull requests

2 participants