Add Makefile for managing Claude Code config symlinks

- Move commands, scripts, settings to repo root
- Add Makefile with install/uninstall/status targets
- Symlinks ~/.claude/* to this repo for version control
- Update documentation with setup instructions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Hugo Nijhuis
2025-12-28 18:43:35 +01:00
committed by Hugo Nijhuis
parent 8598f3d405
commit fc5a400b94
14 changed files with 228 additions and 8 deletions

9
scripts/load-forgejo-token.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Load Forgejo token from macOS Keychain into Claude Code session
if [ -n "$CLAUDE_ENV_FILE" ]; then
TOKEN=$(security find-generic-password -a "$USER" -s "forgejo-token" -w 2>/dev/null)
if [ -n "$TOKEN" ]; then
echo "export FORGEJO_TOKEN=\"$TOKEN\"" >> "$CLAUDE_ENV_FILE"
fi
fi
exit 0