Implicitly configure oh-my-posh theme

This commit is contained in:
Manuel Thalmann 2024-03-20 23:13:17 +01:00
parent 0a56cfc809
commit 2a8430e388

View file

@ -89,18 +89,5 @@ function Restore-GenericApps([Context] $context) {
visualstudio2019-workload-vctools;
. "$PSScriptRoot/../Software/NVS/Install.ps1";
# Terminal
@($PROFILE, (powershell -c '$PROFILE')) | ForEach-Object {
Get-Item "$(Split-Path -Parent $_)/profile.d/*Oh My Posh*";
} | ForEach-Object {
$oldContent = Get-Content $_;
$oldContent | ForEach-Object {
$indicator = "oh-my-posh init";
$_ -replace $indicator,"$indicator --config ~/Nextcloud/.omp/manuel.omp.json";
} | Set-Content $_;
}
$context.RemoveDesktopIcon("*Microsoft Edge*");
}