Files
karuo-ai/01_卡资(金)/金仓_存储备份/脚本/cursor_extension_test.sh
2026-07-19 00:21:46 +08:00

23 lines
1.1 KiB
Bash
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.

#!/usr/bin/env bash
# Cursor code5 扩展隔离测试 — 卡若AI 金仓
# 用法bash cursor_extension_test.sh
# 会 Cmd+Q 提示后,用 --disable-extensions 启动 Cursor保留 GPU
set -euo pipefail
CURSOR_APP="/Applications/Cursor.app/Contents/MacOS/Cursor"
WS="/Users/karuo/Documents/个人"
echo "═══════════════════════════════════════════════"
echo "🧪 Cursor 扩展隔离测试"
echo "═══════════════════════════════════════════════"
echo "1. 请先 Cmd+Q 完全退出 Cursor"
echo "2. 本脚本将以 --disable-extensions 打开工作区GPU 保留)"
echo "3. 测试:切标签、点别的 App、开 Agent"
echo "4. 若不崩 → 扩展是嫌疑;逐个 re-enable 排查"
echo ""
read -r -p "已 Cmd+Q(y/N) " ans
[[ "${ans,,}" == "y" ]] || { echo "已取消"; exit 0; }
echo "▶ 启动: $CURSOR_APP --disable-extensions $WS"
exec "$CURSOR_APP" --disable-extensions "$WS"