Windows Terminal 配置記錄


幫助文檔:
https://docs.microsoft.com/en-us/windows/terminal/

windows terminal正式版已支持右鍵菜單,無需手動修改注冊表。(update 2021-3-20)

Terminal配置文件,添加git bash

{
    ...
    "profiles":
    {
        "list":
        [
            ...
             {
                "guid": "{52d45a95-f1c7-4d89-8b0f-d7037783775f}",
                "commandline" : "C:\\Program Files\\Git\\bin\\bash.exe --login -i",
                "icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico", 
                "name" : "Git Bash",
                "startingDirectory" : "~",
                "closeOnExit": "always"
            },
            ...
        ]
    },
   ...
}

注意:
git bash 需ctrl+d或exit推出,直接點 X 關閉標簽,無法正常保存命令記錄。

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

wsl起始目錄:

"startingDirectory" : "//wsl$/Debian/root/"

Powerline配置:
https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup

禁止Azure控制台自動生成

"disabledProfileSources": ["Windows.Terminal.Azure"],

按住alt點“設置”可打開default.json

自帶的右鍵菜單:
https://www.cnblogs.com/TianFang/p/13843696.html
https://github.com/microsoft/terminal/pull/6100


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM