From bb28dadc160db8ae15246429d6842b73920eb740 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 27 Jul 2023 03:03:10 +0200 Subject: [PATCH] Import custom Oh My Posh for user --- scripts/Windows/Collections/Personal.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index c07611b5..924b22f7 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -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;