mirror of
https://github.com/runbear-io/beardrive.git
synced 2026-08-25 08:08:08 +02:00
Product and project are BearDrive; the CLI binary is bdrive (bdrive mnt, bdrive sync, ...), the web viewer is bdrive-web. All conventions follow the full name: .beardrive settings file, .beardriveignore, ~/.beardrive home, BEARDRIVE_HOME, .beardrive-conflict-* / .beardrive-tmp-* files. Plugin/skill/marketplace renamed to beardrive (/beardrive:mount). Module path is now github.com/runbear-io/beardrive — merge only after renaming the GitHub repo, or go install breaks. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HHEUaYfFHhmDvqLYw74Ehz
11 lines
466 B
Bash
Executable File
11 lines
466 B
Bash
Executable File
#!/bin/sh
|
|
# Sync the current project if it is a beardrive mount (has a .beardrive settings file).
|
|
# Fast no-op otherwise, so this hook is safe on every turn in every project.
|
|
#
|
|
# Runs blocking on UserPromptSubmit (fresh files before Claude reads them)
|
|
# and async on Stop (push edits out without delaying the turn).
|
|
cd "${CLAUDE_PROJECT_DIR:-.}" || exit 0
|
|
[ -f .beardrive ] || exit 0
|
|
command -v bdrive >/dev/null 2>&1 || exit 0
|
|
bdrive sync . >/dev/null 2>&1 || true
|