How to set posh-git customization variables globally?

157 views Asked by At

I have tried these two:

  • $global:GitPromptSettings.DefaultPromptAbbreviateGitDirectory = $true
  • $GitPromptSettings.DefaultPromptAbbreviateGitDirectory = $true

But neither of these changes the value globally. When I open a new instance of PowerShell, the changes are not applied there, the same for VS Code

Useful info:

  • I have PowerShell 7.2.1
  • I am using Window's Terminal app from Microsoft Store

Any suggestion gratefully received. Thanks in advance.

0

There are 0 answers