From 9e0ef86eee3b2603f731ca346ec5f6e1fb4a76ed Mon Sep 17 00:00:00 2001 From: Simon Lee Date: Wed, 24 Jul 2024 17:20:03 +0100 Subject: [PATCH] 3.1.12.5.4-dev --- Microsoft.PowerShell_profile.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 77b41e1..667c3d9 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -50,12 +50,12 @@ Version: 3.1.12.2 - July 2024 | Minor Script Fixes, From Development to Producti Version: 3.1.12.3 - July 2024 | Minor Script Fixes, From Development to Production Repository Version: 3.1.12.4 - July 2024 | Fixed Azure CLI Tab Completion Function Version: 3.1.12.5 - July 2024 | Patched Update-PSProfile find and replace. -Version: 3.1.12.5.1 - July 2024 | Patched Update-PSProfile find and replace. -Version: 3.1.12.5.2 - July 2024 | Patched Update-PSProfile find and replace. +Version: 3.1.12.5.1-4 - July 2024 | Patched Update-PSProfile find and replace. + #> # Oh My Posh Profile Version -$profileVersion = '3.1.12.5.3-dev' +$profileVersion = '3.1.12.5.4-dev' # GitHub Repository Details $gitRepositoryUrl = "https://api.github.com/repos/smoonlee/oh-my-posh-profile/releases" @@ -254,7 +254,7 @@ Invoke-WebRequest -Uri $profileDownloadUrl -OutFile $PROFILE $pwshProfile = Get-Content -Path $PROFILE -Raw # Replace 'themeNameHere' with the current theme name -$pwshProfile = $pwshProfile -replace 'themeNameHere', $pwshThemeName +$pwshProfile = [regex]::Replace($pwshProfile, 'themeNameHere', $pwshThemeName, [System.Text.RegularExpressions.RegexOptions]::None, 1) # Write the updated content back to the profile Set-Content -Path $PROFILE -Value $pwshProfile -Force