- 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>
10 lines
307 B
Bash
Executable File
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
|