From bc22b79aa8996890502e6d1bb1d4cc026e0c7168 Mon Sep 17 00:00:00 2001 From: Kitty Cat Date: Sun, 5 Nov 2023 20:36:30 -0500 Subject: [PATCH] add Update-OhMyPosh --- pwsh/Microsoft.PowerShell_profile.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pwsh/Microsoft.PowerShell_profile.ps1 b/pwsh/Microsoft.PowerShell_profile.ps1 index 7595370..fe3af6e 100644 --- a/pwsh/Microsoft.PowerShell_profile.ps1 +++ b/pwsh/Microsoft.PowerShell_profile.ps1 @@ -14,3 +14,9 @@ oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/agnoster.minimal.omp.json" function hosts { Start-Process "notepad.exe" -Args "C:\Windows\system32\drivers\etc\hosts" -Verb runAs } + +# Update Oh-My-Posh +function Update-OhMyPosh { + Set-ExecutionPolicy Bypass -Scope Process -Force + Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1')) +}