你从windows terminal里打开setting (ctrl+,)
打开的是C:\Users\<user>\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState里面的settings.json, 这个不需要admin权限
用的是DejaVuSansMono Nerd Font Mono字体, colorScheme是Gruvbox Dark, 整体效果不错。
不比xshell下的我用的scheme Baskerville-ivorylight差
{
"commandline": "ssh -t zzz@sw02 \"cd /local/zzz && zsh\"",
"fontFace": "DejaVuSansMono Nerd Font Mono",
"guid": "{3b6e258c-bd69-43af-9365-69b153b0ece6}",
"name": "SSH sw02",
"colorScheme": "Gruvbox Dark",
"tabTitle": "sw02",
"useAcrylic": false,
"acrylicOpacity": 0.5,
},
windows terminals里设置快捷键比较方便, 定义用alt+1, alt+2, alt+3。。。来切换各个标签页,ctrl+w来关闭当前标签页,然后定义ctrl+1则向terminal输入"ssh -t sw02 \"cd /local/branch && zsh\"\n"
{
"command":
{
"action": "switchToTab",
"index": 1
},
"keys": "alt+2"
},
{
"command":
{
"action": "switchToTab",
"index": 2
},
"keys": "alt+3"
},
{
"command":
{
"action": "switchToTab",
"index": 3
},
"keys": "alt+4"
},
{
"command":
{
"action": "switchToTab",
"index": 4
},
"keys": "alt+5"
},
{
"command":
{
"action": "switchToTab",
"index": 5
},
"keys": "alt+6"
},
{
"command":
{
"action": "switchToTab",
"index": 6
},
"keys": "alt+7"
},
{
"command":
{
"action": "switchToTab",
"index": 7
},
"keys": "alt+8"
},
{
"command":
{
"action": "switchToTab",
"index": 8
},
"keys": "alt+9"
},
{
"command":
{
"action": "closeTab",
"index": 1
},
"keys": "ctrl+w"
},
{
// use \n for linux
"command":
{
"action": "sendInput",
"input": "source ~/.uzsh/xcelium2012.zshrc\n"
},
"keys": "ctrl+2"
},
{
//use \r for windows
"command":
{
"action": "sendInput",
"input": "ssh -t zzz@sw02 \"cd /local/branch && zsh\"\r"
},
"keys": "ctrl+1"
},
【 在 z16166 的大作中提到: 】
: 你们怎么修改windows terminal的字体的?
: 我发现windows store里安装的windows terminal app所在目录的默认owner是system账号,并且Users组只能读取,Administrators组不在ACL列表中。所以修改defaults.json后无法存盘,即便是以admin身份存盘。
: 当然,强行将owner从system改为当前用户后,是可以的。
: ...................
--
修改:eematlab FROM 64.207.220.*
FROM 64.207.220.*