Add docs and project files - force for Culurien

This commit is contained in:
Fimeg
2026-03-28 20:46:24 -04:00
parent dc61797423
commit 484a7f77ce
343 changed files with 119530 additions and 0 deletions

48
claude-sonnet.sh Executable file
View File

@@ -0,0 +1,48 @@
#!/bin/bash
# claude-anthropic.sh
# Hide configs
if [[ -f ~/.claude.json ]]; then
mv ~/.claude.json ~/.claude.json.temp
fi
if [[ -f ~/.claude/settings.json ]]; then
mv ~/.claude/settings.json ~/.claude/settings.json.temp
fi
# Start a background process to restore configs after delay
(
sleep 60 # Wait 60 seconds
# Restore configs
if [[ -f ~/.claude.json.temp ]]; then
mv ~/.claude.json.temp ~/.claude.json
fi
if [[ -f ~/.claude/settings.json.temp ]]; then
mv ~/.claude/settings.json.temp ~/.claude/settings.json
fi
echo "✅ GLM configs auto-restored after 60s"
) &
RESTORE_PID=$!
echo "🏢 Starting Anthropic Claude (GLM configs will auto-restore in 60s)..."
# Run Claude normally in foreground
claude "$@"
# If Claude exits before the timer, kill the restore process and restore immediately
kill $RESTORE_PID 2>/dev/null
# Make sure configs are restored even if timer didn't run
if [[ -f ~/.claude.json.temp ]]; then
mv ~/.claude.json.temp ~/.claude.json
fi
if [[ -f ~/.claude/settings.json.temp ]]; then
mv ~/.claude/settings.json.temp ~/.claude/settings.json
fi
echo "✅ GLM configs restored"