iterm2
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseiTerm2
iTerm2
iTerm2 is the power-user terminal for Mac. v3.5/3.6 (2025) adds AI Integration (OpenAI key) and a built-in Web Browser panel.
iTerm2是面向Mac用户的专业级终端工具。2025年发布的v3.5/3.6版本新增了AI集成(支持OpenAI密钥)和内置的网页浏览器面板。
When to Use
使用场景
- macOS Power User: Split panes, hotkey window (Quake style), search.
- Remote Integration: Shell integration allows downloading files via drag-drop from SSH.
- macOS高级用户:支持分屏、热键窗口(Quake风格)、搜索功能。
- 远程集成:Shell集成支持通过拖放从SSH会话中下载文件。
Core Concepts
核心概念
Profiles
配置文件(Profiles)
Define colors, fonts, and keyboard behavior per environment.
可针对不同环境定义配色、字体和键盘行为。
Triggers
触发器(Triggers)
Regex that watches output and performs actions (e.g., highlight "Error", run a script, ring incomplete).
通过正则表达式监控输出并执行操作(例如,高亮显示“Error”、运行脚本、发出提示音)。
Tmux Integration
Tmux集成
tmux -CCtmux -CCBest Practices (2025)
2025年最佳实践
Do:
- Use Shell Integration: Install it to enable features like "Status Bar" on the prompt line.
- Use "Composer": Like Warp, iTerm2 has an input composer window ().
Cmd+Shift+C - Map Option to Meta: Ensure key acts as
Optionfor proper Emacs/Vim navigation.Esc+
Don't:
- Don't ignore the GPU renderer: Enable Metal renderer for performance.
建议:
- 使用Shell集成:安装后可启用命令行提示符处的“状态栏”等功能。
- 使用“Composer”功能:与Warp类似,iTerm2拥有输入编辑窗口(快捷键)。
Cmd+Shift+C - 将Option键映射为Meta键:设置键作为
Option使用,以适配Emacs/Vim的导航操作。Esc+
不建议:
- 不要忽略GPU渲染器:启用Metal渲染器以提升性能。