Windows Terminal

windows terminal这个终端很好用,这里记一下

windows terminal需要通过microsoft store下载。

将microsoft store从网络沙盒中移除,以便使用代理加速

win+r运行regedit

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings

找到name为microsoft store的项目,记下SID,然后在管理员权限的powershell中运行:

 CheckNetIsolation.exe loopbackexempt -a -p=S-1-15-2-1609473798-1231923017-684268153-4268514328-882773646-2760585773-1760938157

更多请查看知乎专栏

安装windows terminal

通过microsoft store安装

配置文件

{
  "$help": "https://aka.ms/terminal-documentation",
  "$schema": "https://aka.ms/terminal-profiles-schema",
  "actions": [
    {
      "command": {
        "action": "sendInput", // 用于在coding agent cli中换行
        "input": "\u001b\r"
      },
      "id": "User.SendEscEnter"
    },
    {
      "command": {
        "action": "copy",
        "singleLine": false
      },
      "id": "User.copy"
    },
    {
      "command": "find",
      "id": "User.find"
    },
    {
      "command": "paste",
      "id": "User.paste"
    },
    {
      "command": {
        "action": "splitPane",
        "split": "auto",
        "splitMode": "duplicate"
      },
      "id": "User.splitPane"
    }
  ],
  "copyFormatting": "none",
  "copyOnSelect": false,
  "defaultProfile": "{8c18a300-7369-4c14-ab39-391b1cd9bc93}",
  "disabledProfileSources": [
    "Windows.Terminal.VisualStudio",
    "Windows.Terminal.Azure"
  ],
  "keybindings": [
    {
      "id": "User.copy",
      "keys": "ctrl+c"
    },
    {
      "id": "User.paste",
      "keys": "ctrl+v"
    },
    {
      "id": "User.find",
      "keys": "ctrl+shift+f"
    },
    {
      "id": "User.splitPane",
      "keys": "alt+shift+d"
    },
    {
      "id": "User.SendEscEnter",
      "keys": "shift+enter"
    }
  ],
  "newTabMenu": [
    {
      "type": "remainingProfiles"
    }
  ],
  "profiles": {
    "defaults": {
      "colorScheme": "Ghostty Current",
      "cursorShape": "filledBox",
      "font": {
        "face": "JetBrains Mono",
        "size": 12
      }
    },
    "list": [
      {
        "commandline": "ssh root@192.168.5.16 -p 2222",
        "guid": "{8c18a300-7369-4c14-ab39-391b1cd9bc93}",
        "hidden": false,
        "icon": "E:\\head.jpeg",
        "name": "station",
        "opacity": 90,
        "useAcrylic": true
      },
      {
        "guid": "{64525207-991d-5a52-96b2-a69a5453f28c}",
        "hidden": false,
        "name": "Debian",
        "source": "Microsoft.WSL"
      },
      {
        "elevate": false,
        "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
        "hidden": false,
        "name": "PowerShell",
        "source": "Windows.Terminal.PowershellCore"
      },
      {
        "commandline": "ssh root@ttl.arloor.com",
        "guid": "{03cae46d-011a-429c-99d6-a50747372b68}",
        "hidden": false,
        "icon": "E:\\head.jpeg",
        "name": "ttl.arloor.com",
        "opacity": 90,
        "useAcrylic": true
      },
      {
        "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
        "elevate": true,
        "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
        "hidden": false,
        "name": "Windows PowerShell"
      },
      {
        "commandline": "%SystemRoot%\\System32\\cmd.exe",
        "elevate": true,
        "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
        "hidden": false,
        "name": "\u547d\u4ee4\u63d0\u793a\u7b26"
      },
      {
        "commandline": "ssh arloor@192.168.5.244",
        "guid": "{919fe820-5139-4cb2-93e0-c6b76f3aa02e}",
        "hidden": false,
        "icon": "E:\\head.jpeg",
        "name": "mac mini",
        "opacity": 90,
        "useAcrylic": true
      }
    ]
  },
  "schemes": [
    {
      "background": "#FAF9F6",
      "black": "#1D1F21",
      "blue": "#81A2BE",
      "brightBlack": "#666666",
      "brightBlue": "#7AA6DA",
      "brightCyan": "#70C0B1",
      "brightGreen": "#1A7F37",
      "brightPurple": "#C397D8",
      "brightRed": "#D54E53",
      "brightWhite": "#EAEAEA",
      "brightYellow": "#E7C547",
      "cursorColor": "#000000",
      "cyan": "#8ABEB7",
      "foreground": "#000000",
      "green": "#1A7F37",
      "name": "Ghostty Current",
      "purple": "#B294BB",
      "red": "#CC6666",
      "selectionBackground": "#000000",
      "white": "#C5C8C6",
      "yellow": "#F0C674"
    }
  ],
  "theme": "system",
  "themes": [],
  "warning.largePaste": false
}