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