Windows Terminal + MSYS2 + ZSH 配置
主要是分享一下配置。
Windows Terminal 配置
字体用的是 JetBrains Mono。
清单
{
"guid": "{71160544-14d8-4194-af25-d05feeac7233}",
"name": "MSYS2",
"commandline": "D:\\msys64\\msys2_shell.cmd -msys -defterm -no-start -full-path -here -shell zsh",
"icon": "D:\\msys64\\msys2.ico",
"startingDirectory": "%CD%",
"closeOnExit": "always",
"colorScheme": "Dracula",
"fontFace": "JetBrains Mono",
"fontSize": 10
}
主题
来源:https://draculatheme.com/windows-terminal/
{
"name": "Dracula",
"cursorColor": "#F8F8F2",
"selectionBackground": "#44475A",
"background": "#282A36",
"foreground": "#F8F8F2",
"black": "#21222C",
"blue": "#BD93F9",
"cyan": "#8BE9FD",
"green": "#50FA7B",
"purple": "#FF79C6",
"red": "#FF5555",
"white": "#F8F8F2",
"yellow": "#F1FA8C",
"brightBlack": "#6272A4",
"brightBlue": "#D6ACFF",
"brightCyan": "#A4FFFF",
"brightGreen": "#69FF94",
"brightPurple": "#FF92DF",
"brightRed": "#FF6E6E",
"brightWhite": "#FFFFFF",
"brightYellow": "#FFFFA5"
}
Zsh
使用 Oh My Zsh 扩展。(异步是真的爽!)
新年快乐!
回复 @Ajiang:
同乐
代码中的路径应该用双斜杠 例如: "commandline": "D:\\msys64\\msys2_shell.cmd -msys -defterm -no-start -here -full-path -shell zsh",
回复 @君临天下:
谢谢指正,我把它丢进 www.json.cn 格式化了一下,没注意到
插件 Fast Syntax Highlighting 报404了
回复 @test:
我用的是edge,识别成chrome了
回复 @test:
这是根据 ua 识别的,代码是 copy 别人的,很久没更新了。新版 edge 内核是 Chrome 的。
回复 @test:
仓库改了 https://github.com/zdharma-continuum/fast-syntax-highlighting
你的才华让人惊叹,你是我的榜样。http://www.gdsanming.com
你的文章内容非常用心,让人感动。http://www.tjkjwz.com
你的文章总是能给我带来欢乐,谢谢你! https://www.yonboz.com/video/70907.html
你的文章内容非常专业,让人佩服。 https://www.yonboz.com/video/82021.html