agent install-shell-integration
把 CLI 的 Shell 集成安装到 ~/.zshrc 中。
agent install-shell-integration 会在 ~/.zshrc 中配置 Shell 集成。据文档所述,这明确针对 zsh;文档中没有为其他 Shell 提供单独的安装流程。
✅ 什么时候用?
在安装 CLI 之后一次性配置好 Shell 集成
agent install-shell-integration
⛔ 什么时候不该用?
想把 Shell 集成重新移除
agent install-shell-integration 只负责安装,不会移除任何内容。
更好的选择: 使用 agent uninstall-shell-integration
来源
- Cursor 官方文档——CLI 参考:参数(Parameters) ↗ cursor.com