Windows Terminal 配置

Appearance profile settings in Windows Terminal

defaults

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"defaults":
{
"acrylicOpacity": 0.1, // 背景透明度 (0-1)
"useAcrylic": true, // 启用毛玻璃
"backgroundImage": "C:/Users/xxx/Pictures/ella-baxter-EfmG0wTPyvQ-unsplash.jpg",
// 背景图片
"backgroundImageOpacity": 0.9, // 图片透明度(0-1)
"experimental.retroTerminalEffect": false, // 复古的 CRT 效果
"backgroundImageStretchMode": "uniformToFill", // 背景图片填充模式
// "icon": "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png", // 图标
"font": {
"face":"MesloLGL NF", // 字体
"size": 10, // 文字大小
"weight": "thin" // 文字宽度,可设置加粗
},
"colorScheme": "Solarized Dark", // 主题名字
"cursorColor": "#FFFFFF", // 光标颜色
"cursorShape": "bar", // 光标形状
"startingDirectory": "E://Blog//", // 起始目录
"antialiasingMode": "cleartype", // 消除文字锯齿
"adjustIndistinguishableColors": true,
// "tabColor": "#000000",
"background": "#000000"
},

安装 Scoop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 允许本地脚本的执行 
set-executionpolicy remotesigned -scope currentuser

# 安装 Scoop
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

# 由于某些原因不能加入主软件源的附加源
scoop bucket add 'extras'

# NF 字体源
scoop bucket add 'nerd-fonts'

# Scoop 自动补全源
scoop bucket add scoop-completion https://github.com/Moeologist/scoop-completion

# 加速下载
scoop install aria2

# 自动补全
scoop install scoop-completion

# 常用字体
scoop install Firacode
scoop install Meslo-NF # 必须安装
scoop install Font-Awesome
scoop install Source-Han-Serif-SC

美化 Power Shell

1
2
3
4
5
6
7
8
9
# 安装相关模块 
Install-Module oh-my-posh -Scope CurrentUser
Install-Module posh-git -Scope CurrentUser -AllowClobber
Install-Module Terminal-Icons -Scope CurrentUser

# 如需卸载,命令如下
Uninstall-Module -Name oh-my-posh -AllVersions -Force
Uninstall-Module -Name posh-git -AllVersions -Force
Uninstall-Module -Name Terminal-Icons -AllVersions -Force

Themes

设置 Themes

1
2
3
4
5
# code $PROFILE

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPromt jblab2021

Windows Terminal 配置
https://silhouettesforyou.github.io/2021/12/14/8e8e60e6e1a7/
Author
Xiaoming
Posted on
December 14, 2021
Licensed under