feat: runcc.sh 经 .env 的 SKILLS_DIR 挂载公共 skills 仓库

CC_ARGS 在 SKILLS_DIR 非空时追加 --add-dir,便于跨电脑迁移。
.env.example 增加路径配置说明;.env(本地)由用户填入实际路径。

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-29 17:51:46 +08:00
co-authored by Claude
parent df787f42ae
commit 153c4d6dde
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -193,7 +193,10 @@ fi
# ── 启动 Claude Code ────────────────────────────────────
CC_ARGS=(--ide --dangerously-skip-permissions --allow-dangerously-skip-permissions --effort max)
# CC_ARGS=(--verbose)
# --add-dir /data/skills
# 公共 skills 仓库(由 .env 的 SKILLS_DIR 配置,便于跨电脑迁移)
if [ -n "${SKILLS_DIR:-}" ]; then
CC_ARGS+=(--add-dir "$SKILLS_DIR")
fi
if [ -n "$SESSION_NAME" ]; then
INITIAL_PROMPT="/rename $SESSION_NAME"