3

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.

Knowledge Man
  • 309
  • 2
  • 10

1 Answers1

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