zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Windows PowerShell 使用oh-my-posh

Windows my PowerShell 使用 Oh
2023-09-14 08:58:44 时间
> winget install JanDeDobbeleer.OhMyPosh # 安装后重启shell
> Install-Module oh-my-posh # 安装模块,然后重启shell
> code $PROFILE # 使用vscode编辑这个文件

$PROFILE:

clear
Import-Module oh-my-posh
oh-my-posh --init --shell pwsh --config ($env:POSH_THEMES_PATH + "\cert.omp.json") | Invoke-Expression

See also: