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
本文来自博客园,作者:breezecn,转载请注明原文链接:https://www.cnblogs.com/breezecn/p/19778261
联系作者: https://aboutbreeze.pages.dev/
浙公网安备 33010602011771号