Skip to content

Instantly share code, notes, and snippets.

@leonj1
Created December 1, 2025 18:18
Show Gist options
  • Select an option

  • Save leonj1/665d0b9e6a0caeb76d6baa8c4b8f7cdf to your computer and use it in GitHub Desktop.

Select an option

Save leonj1/665d0b9e6a0caeb76d6baa8c4b8f7cdf to your computer and use it in GitHub Desktop.
# Claude Thinking (Setup Script)
# Ensure tmp directory exists
mkdir -p ./tmp
# Add ./tmp to .gitignore if not already present
grep -qxF './tmp/' .gitignore || echo './tmp/' >> .gitignore
# Clone or update the leonj1/my-claude-code
export REPO_PATH="./tmp/my-private-claude-code-configs"
export REPO_URL="https://github.com/MYORG/my-private-claude-code-configs"
rm -rf ${REPO_PATH}
mkdir -p ${REPO_PATH}
# ALWAYS rsync the .claude folder
rsync -a "$REPO_PATH/.claude/" ./.claude/
# ALWAYS rsync the CLAUDE.md file to the root
rsync -a "$REPO_PATH/.claude/CLAUDE.md" ./CLAUDE.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment