you can use the instructions under the ohmyposh docs
Follow instructions here
PowerShell offers support for the posh-git module for autocompletion, but it is disabled by default. To enable this, set $env:POSH_GIT_ENABLED = $true
in your $PROFILE
.
This info came from OhMyPosh Docs
Or you can follow Scott Hanselman blogs about Customizing Windows Terminal