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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user