Windows ターミナルに oh-my-posh と posh-git をインストールしましたが、写真でわかるように、git の変更を追跡しません。私が行った変更に関係なく、ステータスなしで次のように表示されます。
oh-my-posh にはデフォルトでこの機能があると思っていたので、posh-git なしでも試してみましたが、結果は同じでした。
これが私のオーマイポッシュテーマです:
{
"$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"
},
{
"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
}