The branch name is shown in git bash, but in my vs code, the branch name does not show.
I want the branch name to be shown in PowerShell as it is my default terminal in vs code.
Asked
Active
Viewed 1,164 times
3

Knowledge Man
- 309
- 2
- 10
1 Answers
2
You should install posh-git: https://github.com/dahlbyk/posh-git
You could also have a look at this tutorial: https://www.hanselman.com/blog/how-to-make-a-pretty-prompt-in-windows-terminal-with-powerline-nerd-fonts-cascadia-code-wsl-and-ohmyposh

Philippe
- 28,207
- 6
- 54
- 78
-
Is there any way to do this by configuring PowerShell? Does PowerShell support plugins for this kind of purpose – Knowledge Man Jan 28 '22 at 08:11
-
1@KnowledgeMan https://stackoverflow.com/q/1287718/6309 should help. – VonC Jan 28 '22 at 08:25