新版本可以直接用 winget 進行安裝
winget install JanDeDobbeleer.OhMyPosh -s winget
oh-my-posh –init –shell pwsh –config C:\Users\g6994\Documents\WindowsPowerShell\Modules\oh-my-posh\themes\night-owl.omp.json | Invoke-Expression
install
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
update
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up