Skip to content

Commit

Permalink
Merge pull request #51 from smoonlee/3.1.12.5.4-dev
Browse files Browse the repository at this point in the history
3.1.12.5.4-dev
  • Loading branch information
smoonlee authored Jul 24, 2024
2 parents 9a334a8 + 9e0ef86 commit cc3d350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc3d350

Please sign in to comment.