Windows Terminal 调整默认终端为git bash

注意settings.json应该是类似于这样的。"defaultProfile"字段在"globals"上方。
调整 defaultProfile 为bash配置对应的 guid.

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile" : "{1c4de342-38b7-51cf-b940-2309a097f589}",
    "globals" : 
    {
        "alwaysShowTabs" : true,
        
        "initialCols" : 120,
        "initialRows" : 30,
        "keybindings" : 
        [
            {
                "command" : "closeTab",
                "keys" : 
                [
                    "ctrl+w"

具体配置文件参考博文Windows Terminal下配置Git Bash中文乱码 - lingr7 - 博客园中的前置操作的部分

参考(两篇合起来看):
Windows Terminal 添加 git-bash - taadis - 博客园
Windows Terminal 调整默认终端 - taadis - 博客园

猜你喜欢

转载自www.cnblogs.com/lingr7/p/12804714.html