ElenVlass/claude-code-vlass

Configuration for Claude Code

โ˜… 0Forks 0ShellGitHub โ†—Compare

README

Claude Code Config

My personal Claude Code configuration synced across devices.

Quick Start

# Clone this repo
git clone [email protected]:YOUR_USERNAME/claude-config.git
cd claude-config

# Install config on this machine
npm run push    # or: pnpm push

Usage

After making changes locally (on any machine)

# 1. Pull changes from ~/.claude to repo
npm run pull    # or: pnpm pull

# 2. Commit and push
git add -A && git commit -m "Update config" && git push

To get changes on another machine

# 1. Pull from git
git pull

# 2. Push config to ~/.claude
npm run push    # or: pnpm push

# 3. Restart Claude Code

Commands

Command Description
npm run pull / pnpm pull Copy from ~/.claude โ†’ repo (for committing)
npm run push / pnpm push Copy from repo โ†’ ~/.claude (install config)
npm run status / pnpm status Show what's synced

What's Synced

  • CLAUDE.md - Main instructions file
  • settings.json - Settings and permissions
  • rules/ - Custom rules
  • agents/ - Custom agents
  • commands/ - Custom slash commands
  • scripts/ - Helper scripts

Path Handling

The script automatically handles different paths between Linux/WSL and macOS:

  • In repo: Paths use placeholder {{CLAUDE_HOME}}
  • On push: Placeholder is replaced with actual ~/.claude path
  • On pull: Actual paths are normalized back to placeholder

This means the same config works on both systems! ๐ŸŽ‰

Contributors

ElenVlass

Issues