Windows Terminal 調整默認終端為git bash


注意settings.json應該是類似於這樣的。"defaultProfile"字段在"globals"上方。原因是[1]

In preparation for v1.0, we have removed some previously deprecated settings. We know this will likely impact your workflows, but we are hoping this is a one-time event.“Globals” namespace
The Terminal no longer supports the globals property in the JSON file. If you have settings inside the globals object, they will be ignored. To fix this, remove the globals object and move your global settings into the root of the JSON file.

調整 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 - 博客園


  1. Windows Terminal gets updated to v0.11 - MSPoweruser ↩︎


免責聲明!

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



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