353 字
2 分钟
Windows Terminal 的初始美化
2025-11-22
无标签

前言:最近新买的笔记本预装了 Windows 11 ,虽然我确实很想装上 NixOS ,但是暂时懒得折腾了啊哈哈

1. 安装 Starship#

1.1 下载 Starship#

使用 winget
Terminal window
winget install --id Starship.Starship
使用 chocolatey
Terminal window
choco install starship

1.2 创建 Windows Terminal 的 profile#

Terminal window
New-Item -ItemType File -Path $PROFILE -Force

使用文本编辑器修改 $PROFILE ,加入

Terminal window
Invoke-Expression (&starship init powershell)

如果 Windows Terminal 是新安装的,此时 $PROFILE 应该只有一行

1.3 使用一个预设#

因为我自己用 Catppuccin 比较久,所以在这里也直接用上了

Terminal window
New-Item -ItemType Directory -Path $env:USERPROFILE/.config
starship preset catppuccin-powerline -o $env:USERPROFILE/.config/starship.toml

2. 设置 Windows Terminal#

2.1 字体#

安装 Maple Mono

然后在 Windows Terminal 的设置->默认值->外观->字体 设置

2.2 自定义配色#

设置左下角打开 JSON 文件, 在 "schemes": [] 里加入配色选项

配色选项可以从这里获取

同样在 Windows Terminal 的设置->默认值->外观->配色 设置

2.3 删除烦人的开幕词!#

这简直烦透了!

Windows PowerShell
版权所有(C) Microsoft Corporation。保留所有权利。
安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows

在 Windows Terminal 的设置-> Windows PowerShell ->命令行 中加入 -NoLogo 选项即可

现在命令行应该长得像 %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo

3. 安装自动补全#

在 PowerShell(管理员) 中运行 Install-Module PSReadLine -Force 即可!

4. 以后的工作#

  • 安装 zoxide, fzf, yazi 等工具

现在你的 Windows Terminal 应该长得像这样了!#

Preview

Windows Terminal 的初始美化
https://blog.remoaku.top/posts/windows-terminal/
作者
Remo
发布于
2025-11-22
许可协议
CC BY-NC-SA 4.0