8 lines
345 B
Bash
8 lines
345 B
Bash
#!/usr/bin/env bash
|
|
# SessionStart: warm the QMD index and daemon in the background; never blocks or fails the session.
|
|
script="$HOME/.my-ai-configuration/qmd/qmd-warm.mjs"
|
|
if [ -f "$script" ] && command -v node >/dev/null 2>&1 && git rev-parse --show-toplevel >/dev/null 2>&1; then
|
|
nohup node "$script" >/dev/null 2>&1 </dev/null &
|
|
fi
|
|
exit 0
|