> ## Content Index
> Fetch the complete content index at: https://brotherhong.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Windows Terminal：现代化命令行方案
- URL: https://brotherhong.com/windows-terminal/
- Published: 2025-11-12T00:00:00.000Z
- Updated: 2025-11-12T00:00:00.000Z
- Description: 理解为什么 Windows 用户应该先升级终端工具，并完成基础配置。
- Author: 洪哥
- Tags: 工具, Windows Terminal, PowerShell, 终端

很多 AI 编程工具都依赖一个靠谱的终端环境，这篇帮你把 Windows 侧的命令行底座搭起来。

过去我们只能忍受 `cmd.exe` 或老旧的 PowerShell 蓝色窗口。如今，**Windows Terminal + PowerShell 7** 已经是 Windows 开发的标准配置。

## 第一部分：简介

Windows Terminal 是微软推出的现代、开源的**终端模拟器**，支持 CMD、PowerShell、WSL（Ubuntu）等多种环境自由切换。

| 组件             | 推荐选择                    | 理由                                 |
| -------------- | ----------------------- | ---------------------------------- |
| **终端模拟器**      | **Windows Terminal**    | 目前 Windows 上最好的终端入口，无可替代。          |
| **Shell (原生)** | **PowerShell 7 (Core)** | 比系统自带的 PowerShell 5.1 更快、跨平台、功能更强。 |

---

## 第二部分：安装

### 1\. 安装 Windows Terminal 和 PowerShell 7

打开 Windows 商店（Microsoft Store），搜索并安装以下两个软件。**注意：安装时需要关闭代理**：

- 搜索并安装 **Windows Terminal**。
- 搜索并安装 **PowerShell** (图标是黑色的，不是蓝色的)。

![Windows Terminal 安装](https://brotherhong.com/content/images/2026/12/windows-terminal-image-01.webp)

![PowerShell 7 安装](https://brotherhong.com/content/images/2026/12/windows-terminal-image-02.png)

### 2\. 配置 Windows Terminal

**•** 搜索“终端”，右键选择“固定到任务栏”。后续使用时，直接从任务栏单击即可打开。

![固定到任务栏](https://brotherhong.com/content/images/2026/12/windows-terminal-image-03.png)

**•** 打开”终端”，进入设置。将默认配置改为刚安装的 PowerShell，并将启动目录设置为日常工作目录（尽量不要放在 C 盘下）。

![设置默认 Shell](https://brotherhong.com/content/images/2026/12/windows-terminal-image-04.png)

![设置启动目录](https://brotherhong.com/content/images/2026/12/windows-terminal-image-05.png)

![配置完成](https://brotherhong.com/content/images/2026/12/windows-terminal-image-06.png)

## 第三部分：使用

直接从底部任务栏打开“终端”即可使用。

![Windows Terminal 使用界面](https://brotherhong.com/content/images/2026/12/windows-terminal-image-07.png)

## 总结

推荐配置：

- **入口：** Windows Terminal
- **日常操作：** PowerShell 7

别再用老旧的 CMD 了，拥抱 **Windows Terminal**。