Skip to content

Instantly share code, notes, and snippets.

@nazo
Last active May 28, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazo/05435661c0b73bce728dbc796036c1d0 to your computer and use it in GitHub Desktop.
Save nazo/05435661c0b73bce728dbc796036c1d0 to your computer and use it in GitHub Desktop.
Windows Terminal 小ネタ

https://www.microsoft.com/ja-jp/p/windows-terminal-preview/9n0dx20hk701

設定画面

下矢印みたいなのを押して「設定」

タブ切り替えショートカットキー

Ctrl+Tab / Shift+Ctrl+Tab

変更したい場合、keybindings で以下のようにする(例えばiTerm風)

{ "command": "nextTab", "keys": "alt+shift+]" },
{ "command": "prevTab", "keys": "alt+shift+[" },

デフォルトで WSL2 (Ubuntu) を起動するようにする

defaultProfile を Ubuntu の guid で書き換えると、それが最初に起動します。

フォントを変える

profiles defaults に以下を設定します。

  • フォント種類 : fontFace
  • フォントサイズ : fontSize
    "profiles": {
        "defaults": {
            // Put settings here that you want to apply to all profiles.
            "cursorShape": "filledBox",
            "fontFace": "Myrica M",
            "fontSize": 14,
            "colorScheme": "Dracula"
        },

カラースキーム

適当にぐぐって探すといいです。とりあえず Dracula を入れてます。

起動時のウィンドウサイズを変更する

ルートに initialCols initialRows を設定すると適用されます。

{
    "$schema": "https://aka.ms/terminal-profiles-schema",

    "defaultProfile": "{...}",
    "initialCols": 200,
    "initialRows": 65,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment