From 4eafdee297f144e943b06552857b2564372874b5 Mon Sep 17 00:00:00 2001 From: habiwan Date: Sun, 29 Mar 2026 12:26:01 +0100 Subject: [PATCH] Added fixomp function inside the profile --- Microsoft.PowerShell_profile.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index f7c393c..c8371a5 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -1,2 +1,11 @@ +function fixomp { + $profileContent = @( + 'fastfetch --logo "$HOME\hwk.txt"', + 'oh-my-posh init pwsh | Invoke-Expression', + '# To repair this file again, type: fixomp' + ) + $profileContent | Out-File -FilePath $PROFILE -Encoding utf8 + Write-Host "Profile repaired! Restart your terminal to see changes." -ForegroundColor Green +} fastfetch --logo "$HOME\hwk.txt" oh-my-posh init pwsh | Invoke-Expression