Files
mkdocs/docs/Obsidian笔记体系/Projects/claude code/命令行工具.md
2026-06-28 15:55:05 +08:00

32 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
> 使用claude时使用的命令行工具,哪个更文档,当前是windows powershell,还有其它更好的吗?
● 这个问题跟代码项目本身无关,我直接根据了解的情况来回答。
Windows 下使用 Claude Code 的终端选择
推荐排序
Windows Terminal(强烈推荐)
- 微软官方出品的现代终端,支持多标签、GPU 加速渲染、丰富的主题配置
- 可以内嵌 PowerShell、CMD、WSL Bash 等多种 Shell
- Unicode 和 emoji 支持完善,Claude Code 的交互体验最佳
- 通过 Microsoft Store 安装:winget install Microsoft.WindowsTerminal
PowerShell 7+(当前可用)
- 比 Windows PowerShell 5.1 强很多,是跨平台版本
- 你当前的 Windows PowerShell(5.1)是旧版,功能有限
- 升级:winget install Microsoft.PowerShell
Git Bash / MSYS2 Bash
- 你当前会话的 shell 就是 bash,类 Unix 体验
- 对习惯 Linux/Mac 命令的用户更友好
- 缺点:终端模拟器本身(mintty)比较老旧
VS Code 内置终端
- 如果你在 VS Code 中使用 Claude Code,内置终端完全够用
- 同样支持 PowerShell、Git Bash、WSL
最佳组合
Windows Terminal + PowerShell 7 或 Windows Terminal + Git Bash,这是目前 Windows 上体验最好的搭配。
总结
你当前的 PowerShell 不是不能用,但 Windows Terminal 是更现代、更流畅的选择,推荐安装试试。