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