claudedo/shell/autostart.sh
disqualifier bf516143b5 install: shell cc kit, opt-in autostart, bootstrap
cc kit as a sourced ~/.config/claudedo/cc.sh (bash+zsh, forced explicit names).
opt-in rc autostart guarded by CLAUDEDO_AUTOSTART + an optional systemd user
unit. install.sh is idempotent: WSL audio deps, ~/.asoundrc pulse shim, audio
verify, model prime, and source-line rc wiring with backups.

Signed-off-by: disqualifier <dev@disqualifier.me>
2026-06-25 17:55:30 -04:00

19 lines
883 B
Bash

# claudedo autostart (OPT-IN). starts the voice daemon once per WSL session in its
# own tmux session, if not already running. WSL has no real boot and usually no
# systemd, so this rc-based guard matches WSL's "starts when you open a terminal"
# model. POSIX; safe to source under bash and zsh.
#
# this only acts when CLAUDEDO_AUTOSTART=1 is set (the rc marker block gates on it),
# so sourcing it alone does nothing. to enable: export CLAUDEDO_AUTOSTART=1 before
# the cc-kit marker block in your rc. to disable: unset it (or remove this file).
#
# the daemon runs detached; watch its logs with: tmux attach -t claudedo-daemon
if [ "${CLAUDEDO_AUTOSTART:-0}" = "1" ]; then
if command -v claudedo >/dev/null 2>&1; then
if ! tmux has-session -t claudedo-daemon 2>/dev/null; then
tmux new-session -d -s claudedo-daemon "claudedo start"
fi
fi
fi