'How to set posh-git customization variables globally?
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
