Implicitly configure oh-my-posh theme

This commit is contained in:
Manuel Thalmann 2024-03-20 23:13:17 +01:00
parent d0a78ed134
commit aab530444d

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*");
}