mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 10:31:20 +00:00
- Add comprehensive TUI interface with React Ink components - Implement session management, model selection, and command dialogs - Add theme system with customizable colors and styling - Integrate with existing opencode server and SDK - Add todo management and file browsing capabilities - Include proper TypeScript support and error handling
17 lines
278 B
Bash
Executable File
17 lines
278 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -d ".git" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
mkdir -p .git/hooks
|
|
|
|
cat > .git/hooks/pre-push << 'EOF'
|
|
#!/bin/sh
|
|
bun prettier --write --ignore-unknown $(git diff --name-only HEAD~1 HEAD)
|
|
bun run typecheck
|
|
EOF
|
|
|
|
chmod +x .git/hooks/pre-push
|
|
echo "✅ Pre-push hook installed"
|