oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

damaged the terminal shell integration of vscode

Open futurist opened this issue 9 months ago • 6 comments

After using Oh-my-bash, the shell integration feature of vscode not work any more:

Image

Compared with https://ohmyz.sh, the vscode terminal works fine:

Image

Any clue to solve this?

futurist avatar Mar 28 '25 10:03 futurist

akinomyoga avatar Mar 28 '25 11:03 akinomyoga

1 theme is font 2 use the automatic way

futurist avatar Mar 29 '25 04:03 futurist

Thank you. Have you tried the manual installation? The page you provided says that the automatic injection may not work and recommends the manual installation.

However, the manual installation might not work. I guess the problem is because Oh My Bash updates PS1 for every prompt, while VS-Code shell integration tries to modify PS1 only on startup.

akinomyoga avatar Mar 29 '25 17:03 akinomyoga

manual installation can work, but it's not good. can you fix the situation when use automatic case?

futurist avatar Mar 31 '25 10:03 futurist

manual installation can work, but it's not good. can you fix the situation when use automatic case?

futurist avatar Mar 31 '25 10:03 futurist

The upstream VS Code seems to recognize the problem, so could you ask VS Code about the solution?

akinomyoga avatar Apr 20 '25 04:04 akinomyoga