備忘録

備忘録

Windows Terminalのスタートアップ動作を変更する方法

Ⅰ. はじめに

タイトルの通り「Windows Terminalのスタートアップ動作を変更する方法」です。

Ⅱ. やり方

1. Windows Terminalの設定(setting.json)を開く
2. プロファイル名を変更する
{
  "profiles":
  {
    "list":
    [
      {
-        "name": "コマンド プロンプト"
+        "name": "cmd"
      }
    ]
  }
}
3. スタートアップ動作を定義する
{
  "startupActions": "new-tab -p cmd -d c:\\ ; split-pane -p cmd -d d:\\ ; split-pane -p cmd notepad.exe"
}

実行結果

f:id:kagasu:20220309121343j:plain