git - oh-my-posh 模块在 git 目录中运行缓慢
问题描述
我正在为 PowerShell 使用 oh-my-posh,它在 git repos 中非常慢。在常规目录中,如果我按 Enter 键,则会立即出现一个新行。但是,如果我在 git repos 中按 enter,则需要 1-2 秒才能出现新行。这是我的个人资料:
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#91ddff",
"foreground": "#100e23",
"powerline_symbol": "",
"properties": {
"folder_icon": "",
"folder_separator_icon": " ",
"home_icon": "",
"style": "agnoster"
},
"style": "powerline",
"type": "path"
},
{
"background": "#95ffa4",
"foreground": "#193549",
"powerline_symbol": "",
"style": "powerline",
"type": "git",
"properties": {
"display_status": true,
"display_stash_count": true,
"display_upstream_icon": true
}
},
{
"background": "#906cff",
"foreground": "#100e23",
"powerline_symbol": "",
"properties": {
"prefix": " "
},
"style": "powerline",
"type": "python"
},
{
"background": "#ff8080",
"foreground": "#ffffff",
"powerline_symbol": "",
"style": "powerline",
"type": "exit"
}
],
"type": "prompt"
}
],
"final_space": true
}
我也尝试过设置display_status
,display_stash_count
和display_upstream_icon
false ,但这对性能几乎没有任何影响。有任何想法吗?
解决方案
推荐阅读
- java - 不同的 LWJGL OpenGL 库编号是什么意思/做什么?
- reactjs - 尝试从托管站点访问时,Cloud Run 服务出现 404 错误
- c - C 程序不执行 Else 语句
- pycharm - 如何在不使用绝对路径的情况下访问一个 Pycharm 项目中不同目录中的文件?
- javascript - React-Native Jitsi Meet'null 不是对象(评估'JitsiMeetModule.call)'错误
- flutter - 如何将 SVG 绘制到图像上?
- c++ - 调用 glReadPixels 时我得到错误的值
- nativescript - NativeScript 路线图:桌面支持不再支持?
- c++ - c ++编译错误'预期';' 在声明结束时使用直接大括号初始化
- verilog - 总是在没有敏感度列表的情况下阻塞 - $display 未执行