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.