add Update-OhMyPosh

This commit is contained in:
2023-11-05 20:36:30 -05:00
parent f8092a11b9
commit bc22b79aa8

View File

@@ -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'))
}