dahlbyk / posh-git

A PowerShell environment for Git
http://dahlbyk.github.io/posh-git/
MIT License
7.62k stars 802 forks source link

posh-git doesn't work with vscode integrated terminal #946

Closed longtth closed 1 year ago

longtth commented 1 year ago

System Details

Issue Description

posh-git works well with default pwsh terminal but doesn't work with vscode integrated terminal

screenshot:

image

dahlbyk commented 1 year ago

What does $PROFILE show in Terminal vs VS Code? It seems likely that posh-git just isn't loading in VS Code.

longtth commented 1 year ago

they return the same thing

image

dahlbyk commented 1 year ago

If you cat $PROFILE is that where posh-git is imported?

Does $Errors show anything interesting?

longtth commented 1 year ago

excuse me for missing your reply, after several uninstall / install posh-git and restart, it works well now, next time if encounter the issue, I will check follow your guide image

dahlbyk commented 1 year ago

Sorry I couldn't be more help, but glad it's working!