diff --git a/install.sh b/install.sh index c8c3c46..b34e28d 100755 --- a/install.sh +++ b/install.sh @@ -34,6 +34,23 @@ else echo " git subtree add --prefix .claude/llm-functions https://github.com/sigoden/llm-functions.git main --squash" fi +echo "" +echo "=== Mise à jour du .gitignore projet ===" +GITIGNORE="$PROJECT_DIR/.gitignore" +entries=( + ".claude/venv/" + ".claude/logs/" + ".claude/llm-functions/bin/" + ".claude/llm-functions/cache/" +) +for entry in "${entries[@]}"; do + if ! grep -qxF "$entry" "$GITIGNORE" 2>/dev/null; then + echo "$entry" >> "$GITIGNORE" + echo " ajouté : $entry" + fi +done +echo "OK" + echo "" echo "=== Hooks exécutables ===" chmod +x "$CLAUDE_DIR/hooks/"*.sh