win10 1903+
安装/自行编译 Windows Terminal
仅做记录查看
u1s1,微软官方的文档是真的全
配置文件设置
Cascadia Code PL
所有版本的 Cascadia Code
都可以从 Cascadia Code GitHub 发布页下载
使用 PowerShell
,安装 Posh-Git
和 Oh-My-Posh
:
1 | Install-Module posh-git -Scope CurrentUser |
Posh-Git 将 Git 状态信息添加到提示,并为 Git 命令、参数、远程和分支名称添加 tab 自动补全。 Oh-My-Posh 为 PowerShell 提示符提供主题功能。
若要在当前 PowerShell 主机应用程序中创建当前用户的配置文件,请使用以下命令:
1 | if (!(Test-Path -Path $PROFILE)) { |
notepad $PROFILE
任意编辑器对配置文件进行编辑
1 | Import-Module posh-git |
如果PowerShell
提示执行脚本不安全的问题,更新执行策略
Set-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
policy-name可能的值
Unrestricted、RemoteSigned、AllSigned、Restricted、Default、Bypass、Undefined
安装含Powerline版本PL字体后,在Setting.json
中添加进powershell
中
1 | "fontFace": "Cascadia Code PL", |
背景和配色
acrylic
背景和透明度设置,默认关闭1
2"useAcrylic": false,
"acrylicOpacity": 0.15,设置背景图像及透明度
1
2"backgroundImage":"...",
"backgroundImageOpacity":0.4,根据自己的背景搭配自带的配色方案多试试搭配,毕竟懒得自定义配色
1
"colorScheme": "Tango Dark",
结果图