Import custom Oh My Posh for user

This commit is contained in:
Manuel Thalmann 2023-07-27 03:03:10 +02:00
parent 40788f3d98
commit bb28dadc16

View file

@ -147,6 +147,11 @@ function Restore-PersonalApps([Context] $context) {
nvs add latest;
nvs link latest;
# Terminal
$profileRoots = @($PROFILE, (powershell -c '$PROFILE')) | ForEach-Object { Split-Path -Parent $_; };
$profileRoots | ForEach-Object { Remove-Item "$_/profile.d/*Oh My Posh*.ps1"; };
$context.AddPowerShellProfileStatement($false, "999_Oh My Posh", "oh-my-posh init pwsh --config ~/Nextcloud/.omp/manuel.omp.json | Invoke-Expression");
# Gaming
choco install -y goggalaxy;