Created
December 1, 2025 18:18
-
-
Save leonj1/665d0b9e6a0caeb76d6baa8c4b8f7cdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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