23 lines
570 B
Bash
Executable File
Raw Permalink 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.

#! /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!"