kotonoha_pcg@気ままに雑記

kotonoha_pcgが気分次第で様々書き置きます.dlang関係他:http://kotonoha-pcg.hatenadiary.com

Windows Terminalの設定晒す

 大した意味もない記事だけど、少し設定をいじってみたので晒してみます。環境は

Windows Terminal (Preview)
Version: 0.10.761.0

参考にしたのはこちらです。

qiita.com

 ただ、他の記事やドキュメントも参照したんですが、カラースキームの設定の記述方法がいまいちよくわからなくて放置してます。今の状態だとSolarized Darkには見えない・・・w

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

{
    //この辺の何にも囲まれていないところがGlobal Settings
    "$schema": "https://aka.ms/terminal-profiles-schema",
    
    //起動時にデフォルトで開くターミナルの指定(guid)
    "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",

    //画面サイズの変更
    "initialCols": 160,
    "initialRows": 40,

    "profiles":
    {
        "defaults":
        {
            // Put settings here that you want to apply to all profiles
        },
        "list":
        [
            {
                // Make changes here to the powershell.exe profile
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
                "hidden": false
            },
            {
                // Make changes here to the cmd.exe profile
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "name": "cmd",
                "commandline": "cmd.exe",
                "hidden": false,
                //my additional config
                "experimental.retroTerminalEffect": true
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "Windows.Terminal.Wsl"
            }
        ]
    },

    // Add custom color schemes to this array
    //"schemes": [],
    "colorscheme": "Solarized Dark",

    // Add any keybinding overrides to this array.
    // To unbind a default keybinding, set the command to "unbound"
    "keybindings": []
}

 ちなみにこれすごいな、って思ったのは、WSLを有効化する前にインストールして、WSL有効化後&Ubuntu18.04導入後に再起動したら設定ファイルがguidを自動で認識していたことです。小学生並みの感想しか出ないのか俺は。