23 lines
570 B
Plaintext
Raw Permalink Normal View History

#! /bin/sh
set -e
# make sure we’re in the repo root (in case Git invokes hooks from .git/hooks)
cd "$(git rev-parse --show-toplevel)"
echo "Running cursorzero.."
# Optional: Configure user for feedback attribution
# Uncomment and set your preferred user identifier:
# CURSORZERO_USER="your-username"
# Build cursorzero command with optional user parameter
CURSORZERO_CMD="cursorzero"
if [ -n "${CURSORZERO_USER:-}" ]; then
CURSORZERO_CMD="$CURSORZERO_CMD --user $CURSORZERO_USER"
fi
# run the installed build of cursorzero
$CURSORZERO_CMD "$@"
echo "done!"