Files
architecture/scripts/load-forgejo-token.sh
Hugo Nijhuis 83a92cd3b7 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>
2025-12-30 23:52:27 +01:00

10 lines
307 B
Bash
Executable File

#!/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