咸鱼

咸鱼是以盐腌渍后,晒干的鱼

0%

Windows Terminal美化

1. 在应用商店安装Windows Terminal

安装完成之后,启动Windows Terminal,在Windows Terminal内完成一些软件安装。

2. 允许powershell执行脚本

1
$ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

3. 安装posh-git和oh-my-posh

oh-my-posh 可以让powershell的样式和 linux下的oh-my-zsh一样。

1
2
$ Install-Module posh-git -Scope CurrentUser
$ Install-Module oh-my-posh -Scope CurrentUser

4. 启用默认设置

1
2
$ Set-Prompt
$ Import-Module oh-my-posh

5. 执行命令使用notepad打开PROFILE

1
$ if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE

输入:

1
2
3
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

6. 安装字体

Delugia.Nerd.Font.Complete.ttf

7. 配色

打开setting,这是一个json配置文件

“profiles” - “colorScheme” 字段是配置颜色主题name,主题在”schemes”: []中定义,如:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "synthwave-everything",
"black": "#fefefe",
"red": "#f97e72",
"green": "#72f1b8",
"yellow": "#fede5d",
"blue": "#6d77b3",
"purple": "#c792ea",
"cyan": "#f772e0",
"white": "#fefefe",
"brightBlack": "#fefefe",
"brightRed": "#f88414",
"brightGreen": "#72f1b8",
"brightYellow": "#fff951",
"brightBlue": "#36f9f6",
"brightPurple": "#e1acff",
"brightCyan": "#f92aad",
"brightWhite": "#fefefe",
"background": "#2a2139",
"foreground": "#f0eff1"
}

更多主题:iTerm2-Color-Schemes