1. 程式人生 > WINDOWS開發 >Windows Terminal 配置

Windows Terminal 配置

登錄檔新增右鍵選單:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal Here]

[HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal Here\command]
@="C:\\Users\\ws-de\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe -d ."

Terminal配置檔案,新增git bash

{
    ...
    "profiles":
    {
        "list":
        [
            ...
            {
                "guid": "{458a038e-a9ef-11ea-bb37-0242ac130002}","closeOnExit" : true,"colorScheme" : "Campbell","commandline" : "\"%PROGRAMFILES%\\git\\bin\\bash.exe\" -i -l","cursorColor" : "#FFFFFF","cursorShape" : "bar","fontFace" : "Consolas","fontSize" : 10,"historySize" : 9001,"icon" : "%PROGRAMFILES%\\Git\\mingw64\\share\\git\\git-for-windows.ico","name" : "Git-Bash","padding" : "0,0","snapOnInput" : true,"startingDirectory" : "%USERPROFILE%"
            },...
        ]
    },...
}

參考:
https://stackoverflow.com/questions/56839307/adding-git-bash-to-the-new-windows-terminal
https://github.com/microsoft/terminal/issues/1060