Pulse/scripts/dev-launchd-wrapper.sh
2026-03-18 16:06:30 +00:00

13 lines
520 B
Bash
Executable file

#!/usr/bin/env bash
# dev-launchd-wrapper.sh - Wrapper for running hot-dev.sh under launchd
#
# launchd doesn't source login profiles, so PATH won't include go, npm,
# node, fswatch, etc. Hand off to an interactive login zsh so the user's
# normal shell environment is loaded before exec'ing hot-dev.sh.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
export PULSE_DEV_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd -P)"
exec /bin/zsh -ilc 'cd "$PULSE_DEV_ROOT" && exec bash scripts/hot-dev.sh'