我使用的是windows终端v1.0.1402.0和powershell v7.0.1,带有oh和windows。当我打开我的终端时,我现在得到了下面的红色基字形。

我已经安装并尝试使用MesloLGL,NF和Cascadia的字体,这两者都应该与哦-我的-时髦。
这是我的powershell配置文件:
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox这是我的windows终端设置
"defaults":
{
"colorScheme": "One Half Dark",
//"fontFace": "MesloLGL NF"
"fontFace": "Cascadia Mono PL"
// Put settings here that you want to apply to all profiles.
},
"list":
[
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "pwsh.exe",
"useAcrylic": true,
"acrylicOpacity": 0.8,
"hidden": false
},不管我在哪个目录,我都会得到这个错误。
如果有帮助的话,这里还有我的主题设置:(旁注:错误计数刚刚转到1,当我在它仍然是0之前就打印了它)
PromptSymbols : {SegmentBackwardSymbol, RootSymbol, PromptIndicator, VirtualEnvSymbol...}
CurrentHostname : MyHost
MyThemesLocation : C:\MyPath\PowerShell\PoshThemes
CurrentThemeLocation : C:\MyPath\PowerShell\Modules\oh-my-posh\2.0.412\Themes\Paradox.psm1
GitSymbols : {BeforeIndexSymbol, LocalStagedStatusSymbol, DelimSymbol, BranchUntrackedSymbol...¦}
Options : {ConsoleTitle, OriginSymbols}
ErrorCount : 1
CurrentUser : user
Colors : {GitForegroundColor, GitDefaultColor, PromptForegroundColor, VirtualEnvBackgroundColor...¦}发布于 2020-06-02 13:25:05
我能够通过引用这个https://superuser.com/q/1424905/1183235问题来解决这个问题。我列出了我所有的powershell配置文件,看到了一个初始化conda并删除它的配置文件。现在起作用了!
要列出所有powershell配置文件,请执行以下操作:
$PROFILE | Format-List -Force发布于 2021-03-14 21:17:35
发布于 2020-10-17 08:00:47
添加
$sl.PromptSymbols.VirtualEnvSymbol = '‘
在Paradox主题文件(或当前主题文件)的底部
https://stackoverflow.com/questions/62096241
复制相似问题