碎碎念
最近重装了系统,很喜欢干干净净的系统,选择的是tiny11
日常会用到命令行所以折腾了一下terminal emulator
官网的下载不一定是最新版本版本,scoop
上甚至落后一个大版本。最近配置文件从yaml
改成了toml
其实我不想用Alacritty
,但没得选比较快,而且还有Rust光环,主要原因
如果是Linux
上我应该会选择Kitty
下载安装
下载链接:https://github.com/alacritty/alacritty/releases
配置
官方文档
在目录新建以下文件夹和文件
C:\Users\User\AppData\Roaming\alacritty\alacritty.toml
下面是我的配置
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| shell = "pwsh"
working_directory = "C:/Users/User"
[window]
position = { x = 540, y = 270 }
dynamic_padding = true
[font]
normal = { family = "Fira Code", style = "Regular" }
[colors]
draw_bold_text_with_bright_colors = true
[colors.primary]
background = '#2E3440'
foreground = '#D8DEE9'
[colors.normal]
black = '#3B4252'
red = '#BF616A'
green = '#A3BE8C'
yellow = '#EBCB8B'
blue = '#81A1C1'
magenta = '#B48EAD'
cyan = '#88C0D0'
white = '#E5E9F0'
[colors.bright]
black = '#4C566A'
red = '#BF616A'
green = '#A3BE8C'
yellow = '#EBCB8B'
blue = '#81A1C1'
magenta = '#B48EAD'
cyan = '#8FBCBB'
white = '#ECEFF4'
[mouse]
hide_when_typing = true
bindings = [
{ mouse = "Right", action = "Paste" },
]
[keyboard]
bindings = [
{ key = "V", mods = "Control", mode = "~Vi", action = "Paste" },
]
|
Prompt
个人用的是Starship
,又是自带Rust
光环,主打一个快,但奈何电脑配置不行,主要的锅还是Windows
本身和Powershell
安装Starship
https://starship.rs/guide/#%F0%9F%9A%80-installation
在目录下新建C:\Users\User\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
添加以下内容
1
| Invoke-Expression (&starship init powershell)
|
配置Prompt
配置Preset
选择Pure Prompt
(个人喜好)
1
| starship preset pure-preset
|
在目录下新建C:\Users\User.config\starship.toml
1
2
| [line_break]
disabled = true
|
The line_break
module separates the prompt into two lines.
I really hate two lines prompt, so I disabled it.