Dotfiles

Dotfiles managed with rcm.

Setup

# One-liner
curl -fsSL https://raw.githubusercontent.com/vairav/dotfiles/main/install.sh | bash

# With options
curl ... | bash -s -- --work      # Work machine
curl ... | bash -s -- --personal  # Personal machine
curl ... | bash -s -- --server    # Server (minimal)

Daily Use

# Edit directly - it's a symlink
vim ~/.zshrc

# Commit
cd ~/workspace/dotfiles
git add -A && git commit -m "update" && git push

# Sync another machine
cd ~/workspace/dotfiles && git pull && rcup

rcm Commands

Command What it does
lsrc Preview symlinks
rcup Create symlinks
rcup -v Verbose
mkrc FILE Adopt a file
rcdn Remove symlinks

Tags

Machine Tags What gets added
macOS Desktop desktop macos Karabiner
Linux Desktop desktop linux i3
Server server Minimal configs

Secrets

Not in git:

  • ~/.zshrc.local - API keys, tokens
  • ~/.gitconfig.local - name, email, signing key