Windows Terminalの設定2019年11月版

みんな大好きWindows Terminal。

WindowsTerminalの設定ファイルバックアップのつもりで^^;;

設定ファイルの場所はデフォルトのまま変更していない。いつからか設定ファイルがprofiles.jsonに変更されているなぁ

変更点は下記の通り

全体

  • DefaultProfileをUbuntuにする
  • iTermと同じように選択されたら自動的にクリップボードに入れる
  • DarkモードをONにする

Profile

  • UbuntuのカーソルをfilledBoxに
  • カラーThemeをSolarized Darkに

キーバインド

iTerm2と同じ感じにしたい欲求

  • Alt+tで新規タブを開く
  • Alt+wでタブを閉じる
  • Alt+[で左タブへ移動
  • Alt+]で右タブへ移動
  • 同一タブで複数ターミナルを開く設定をごにょごにょ追加
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
    "copyOnSelect": true,
    "requestedTheme": "dark",
    "profiles":
    [
        {
            "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
            "hidden": false,
            "name": "Ubuntu",
            "cursorShape": "filledBox",
            "colorScheme": "Solarized Dark",
            "source": "Windows.Terminal.Wsl"            
        }
    ],
 
    // Add custom color schemes to this array
    "schemes": [],
    // Add any keybinding overrides to this array.
    // To unbind a default keybinding, set the command to "unbound"
    "keybindings": [
        { "command" : "closeTab", "keys" :  [ "alt+w" ] },
        { "command" : "nextTab", "keys" :  [ "alt+[" ] },
        { "command" : "prevTab", "keys" :  [ "alt+]" ] },
        { "command" : "newTab", "keys" :  [ "alt+t" ] },
        { "command": "splitHorizontal", "keys": ["ctrl+alt+h"] },
        { "command": "splitVertical", "keys": ["ctrl+alt+v"] },
        { "command": "moveFocusLeft", "keys": ["ctrl+left"] },
        { "command": "moveFocusRight", "keys": ["ctrl+right"] },
        { "command": "moveFocusUp", "keys": ["ctrl+up"] },
        { "command": "moveFocusDown", "keys": ["ctrl+down"] }
    ]
}
 

まとめ

Windows Terminal Tips」を参考にしました。自動で選択されたところCopyしてくれないと困る~

これでかなり便利になった。GitHubに上げるのが正しいんだけどねぇ~

Windows

Posted by WATARU YONESU