#!/bin/bash # One-time setup: creates ~/.ssh/gitea-1password-only so git push uses 1Password for Gitea. # Run from project root: ./scripts/setup-gitea-ssh.sh set -e SSH_DIR="$HOME/.ssh" CONFIG_FILE="$SSH_DIR/gitea-1password-only" OP_SOCK="$HOME/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" mkdir -p "$SSH_DIR" cat > "$CONFIG_FILE" << 'EOF' Host 10.0.10.205 User gitea HostName 10.0.10.205 IdentityAgent "/Users/berthausmans/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" EOF echo "Created $CONFIG_FILE" echo "" echo "Next: enable \"Use the SSH agent\" in 1Password (Settings → Developer)." echo "Then you can push from Cursor or run: ./gitea-push.sh"