小编Nih*_*fiq的帖子

Windows 终端 - 通过 oh-my-posh/posh-git Set-Theme 错误自定义 PowerShell?

Windows 终端 - 通过 oh-my-posh/posh-git Set-Theme 错误自定义 PowerShell?

我按照微软链接的确切教程:在此处输入链接描述,视频链接:在此处输入链接描述

我已经安装了 Posh-Git 和 Oh-My-Posh:通过这个代码 -

安装模块 posh-git -Scope CurrentUser

安装模块 oh-my-posh -Scope CurrentUser

我已经安装了 PSReadLine: 通过这个代码 -

安装模块 -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck

我还通过在我的 PowerShell 配置文件中键入代码 $PROFILE并复制/粘贴此代码来创建 Microsoft.PowerShell_profile.ps1 文件:

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
Run Code Online (Sandbox Code Playgroud)

但我收到此错误: 在此处输入图片说明

git powershell windows-terminal

7
推荐指数
1
解决办法
3803
查看次数

标签 统计

git ×1

powershell ×1

windows-terminal ×1