winget install JanDeDobbeleer.OhMyPosh -s winget
oh-my-posh font install
$PROFILE
notepad $PROFILE
mkdir “$env:HOMEPATH\Documents\WindowsPowerShell”
新建 Microsoft.PowerShell_profile.ps1
set-ExecutionPolicy RemoteSigned
Get-PoshThemes
oh-my-posh init pwsh –config “$env:POSH_THEMES_PATH\M365Princess.omp.json” | Invoke-Expression
clink info
C:\Program Files (x86)\clink\oh-my-posh.lua
load(io.popen('oh-my-posh init cmd --config="C:\\Users\\breeze\\AppData\\Local\\Programs\\oh-my-posh\\themes\\M365Princess.omp.json"'):read("*a"))()
升级:winget upgrade JanDeDobbeleer.OhMyPosh -s winget
https://ohmyposh.dev/
https://github.com/chrisant996/clink/releases
https://blog.csdn.net/weixin_43764974/article/details/137018059
原文链接:https://www.hertzdance.com/blog/oh-my-posh-clink-powershell-cmd,转载请注明出处。
评论0