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安装
配置文件
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
// https://www.guidgen.com/
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{216617ca-b72e-47d5-a886-a170d4367c39}",
"copyOnSelect": true,
"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": "D:\\PowerShell\\6\\pwsh.exe",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom"
},
{
// Make changes here to the powershell.exe profile
"guid": "{9ce63606-3fb5-4a74-89cf-0ea048702f82}",
"name": "华为云4G",
"commandline" : "ssh root@sh.someme.me",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{216617ca-b72e-47d5-a886-a170d4367c39}",
"name": "广州移动",
"commandline" : "ssh root@cm.someme.me",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{560a88df-772b-4ec8-9e39-695a96fa49e6}",
"name": "新加坡",
"commandline" : "ssh root@sg.someme.me",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{fb899ba0-e4ca-49bf-832f-1d63cb2a0e38}",
"name": "腾讯云香港",
"commandline" : "ssh root@hk.someme.me -p 22",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{0f6d0460-17d3-43b4-abcc-b0136bfe29fa}",
"name": "快车道圣何塞",
"commandline" : "ssh root@gia.someme.me",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{9542f627-e35f-49e4-9c5d-647a0fb27b32}",
"name": "泉州cn2",
"commandline" : "ssh root@cn2.someme.me -p 20000",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{ec7a0582-c6d7-4d18-83c5-04c33c05591b}",
"name": "api.arloor.com",
"commandline" : "ssh root@api.arloor.com",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the powershell.exe profile
"guid": "{05527b6c-7edc-453e-9beb-e3ceecd379ac}",
"name": "香港-轻量",
"commandline" : "ssh root@cm.someme.me -p 2222",
"hidden": false,
"fontFace": "Consolas",
"fontSize": 13,
"useAcrylic": true,
"acrylicOpacity": 0.9,
"colorScheme": "Atom",
"icon": "E:\\head.jpeg"
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
// Add custom color schemes to this array
"schemes": [{
"background": "#161719",
"black": "#000000",
"blue": "#7DC1FD",
"brightBlack": "#000000",
"brightBlue": "#BADCFE",
"brightCyan": "#85BEFD",
"brightGreen": "#87E331",
"brightPurple": "#B9B6FC",
"brightRed": "#FD5FF1",
"brightWhite": "#E0E0E0",
"brightYellow": "#F5FFA8",
"cursorColor": "#FFFFFF",
"cyan": "#85BEFD",
"foreground": "#C5C8C6",
"green": "#3B803A",
"name": "Atom",
"purple": "#B9B6FC",
"red": "#FD5FF1",
"selectionBackground": "#FFFFFF",
"white": "#E0E0E0",
"yellow": "#FFD7B1"
}],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": [{ "command": "find", "keys": "ctrl+shift+f" }]
}