Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从my oh my posh/posh git显示中删除红色基础图示符?_Git_Powershell_Fonts_Posh Git_Windows Terminal - Fatal编程技术网

如何从my oh my posh/posh git显示中删除红色基础图示符?

如何从my oh my posh/posh git显示中删除红色基础图示符?,git,powershell,fonts,posh-git,windows-terminal,Git,Powershell,Fonts,Posh Git,Windows Terminal,我正在使用windows终端v1.0.1402.0和powershell v7.0.1,以及我的时尚和时尚git。当我打开我的终端时,我现在得到了下面的红色基础标志符号 我已经安装并尝试使用MesloLGL NF和Cascadia Mono PL作为字体,这两种字体都应该与oh my posh配合使用 以下是我的powershell配置文件: Import-Module posh-git Import-Module oh-my-posh Set-Theme Paradox 这是我的windo

我正在使用windows终端v1.0.1402.0和powershell v7.0.1,以及我的时尚和时尚git。当我打开我的终端时,我现在得到了下面的红色基础标志符号

我已经安装并尝试使用MesloLGL NF和Cascadia Mono PL作为字体,这两种字体都应该与oh my posh配合使用

以下是我的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之前)


我通过引用这个问题解决了这个问题。我列出了我所有的powershell配置文件,看到了一个初始化conda的配置文件并将其删除。现在它工作了

要列出所有powershell配置文件,请执行以下操作:

$PROFILE | Format-List -Force

$sl.PromptSymbols.VirtualEnvSymbol=''


在Paradox主题文件(或当前主题文件)的底部

对于那些遇到这种行为并且不想完全删除oh my posh与conda的集成的人,正如公认的答案所说,有一种方法可以修复未知的标志符号

使用的额外标志符号可以通过使用来自的Cascadia代码的修补版本获得。找一个叫Caskaydia Cove的。下载后,打开每个字体文件并安装。然后可以在Windows终端选项中设置字体(按
Ctrl+,
)并替换默认字体,如下所示:

"fontFace" : "CaskaydiaCove Nerd Font",

是提示现在应该显示的样子。

请注意,这也是一个有用的功能,即当您激活conda环境时,它还会显示conda环境名称,其中“base”现在位于此处。
"fontFace" : "CaskaydiaCove Nerd Font",