我在 PowerShell 中使用 oh-my-posh,它在 git 存储库中速度非常慢。在常规目录中,如果我按 Enter 键,则会立即出现新行。但是,如果我在 git repos 中按 Enter 键,则需要 1-2 秒才能出现新行。这是我的个人资料:
\n{\n "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",\n "blocks": [\n {\n "alignment": "left",\n "segments": [\n {\n "background": "#91ddff",\n "foreground": "#100e23",\n "powerline_symbol": "\xee\x82\xb0",\n "properties": {\n "folder_icon": "\xef\x84\x95",\n "folder_separator_icon": " \xee\x82\xb1 ",\n "home_icon": "\xef\x9f\x9b",\n "style": "agnoster"\n },\n "style": "powerline",\n "type": "path"\n },\n {\n "background": "#95ffa4",\n "foreground": "#193549",\n "powerline_symbol": "\xee\x82\xb0",\n "style": "powerline",\n "type": "git",\n "properties": {\n "display_status": true,\n "display_stash_count": true,\n "display_upstream_icon": true\n }\n },\n {\n "background": "#906cff",\n "foreground": "#100e23",\n "powerline_symbol": "\xee\x82\xb0",\n "properties": {\n "prefix": " \xee\x88\xb5 "\n },\n "style": "powerline",\n "type": "python"\n },\n {\n "background": "#ff8080",\n "foreground": "#ffffff",\n "powerline_symbol": "\xee\x82\xb0",\n "style": "powerline",\n "type": "exit"\n }\n ],\n "type": "prompt"\n }\n ],\n "final_space": true\n}\n\n
Run Code Online (Sandbox Code Playgroud)\n我也尝试过将display_status
,display_stash_count
和设置display_upstream_icon
为 false ,但这对性能几乎没有任何作用。有任何想法吗?
归档时间: |
|
查看次数: |
1463 次 |
最近记录: |