🚀 One-command setup cho Antigravity Terminal Allow List trên Windows và macOS.
Cấu hình này cho phép:
- ✅ Tự động chạy: Các lệnh an toàn như
npm install,git status,docker ps... - ⏸️ Yêu cầu xác nhận: Các lệnh nguy hiểm như
rm,del,Remove-Item...
irm https://raw.githubusercontent.com/TUAN130294/antigravityallowlist/main/setup.ps1 | iexcurl -o setup.bat https://raw.githubusercontent.com/TUAN130294/antigravityallowlist/main/setup.bat && setup.batcurl -fsSL https://raw.githubusercontent.com/TUAN130294/antigravityallowlist/main/setup.sh | bash| Nhóm | Lệnh ví dụ |
|---|---|
| NPM/PNPM/Yarn/Bun | npm install, pnpm dev, yarn build, bun run |
| Git (read-only) | git status, git log, git diff, git branch |
| File viewing | cat, ls, dir, Get-Content, tree |
| Node/TypeScript | node, tsc, tsx, eslint, prettier --check |
| Testing | vitest, jest, playwright test, cypress run |
| Docker (read-only) | docker ps, docker images, docker logs |
| Python | python --version, pip list, pip show |
| System info | whoami, hostname, systeminfo, ipconfig |
| Lệnh | Lý do |
|---|---|
rm, del, Remove-Item |
Xóa file/folder |
git push, git reset --hard |
Thay đổi remote/history |
prisma migrate, prisma db push |
Thay đổi database |
npm uninstall |
Gỡ package |
npx, pnpm dlx, bun x |
Chạy script tùy ý |
prettier --write, eslint --fix |
Ghi đè file |
| OS | Path |
|---|---|
| Windows | %APPDATA%\Antigravity\User\settings.json |
| macOS | ~/Library/Application Support/Antigravity/User/settings.json |
| Linux | ~/.config/Antigravity/User/settings.json |
Nếu script không hoạt động, bạn có thể:
- Download file
settings.jsontừ repo này - Copy vào đường dẫn tương ứng với OS của bạn
- Restart Antigravity
MIT License - Free to use and modify.