Skip to content
gustmrgPublic

About

Personal editor and agent configuration files for reuse across machines.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

Repository files navigation

Dotfiles

Personal shell, Git, editor, and agent configuration files for reuse across machines.

Install

On a new machine:

curl -fsSL https://raw.githubusercontent.com/gustmrg/dotfiles/main/bootstrap.sh | bash

Or from an existing clone:

./bootstrap.sh

The bootstrap script symlinks configuration files into the home directory by default, so a git pull (or dotsync from Zsh) applies updates immediately to linked configs (see Updating for the files that are always copied). Existing files, directories, or symlinks are backed up before being replaced; already-linked targets are left in place.

Backups are written to:

~/.dotfiles-backup/<timestamp>/

Flags are not mandatory. If you run ./bootstrap.sh in a terminal, it asks which optional configs you want to install. Use flags when you want to skip the prompt, for example in a non-interactive setup:

./bootstrap.sh --minimal
./bootstrap.sh --copy --all
./bootstrap.sh --all
./bootstrap.sh --opencode --claude --skills --codex
./bootstrap.sh --fonts

By default, bootstrap creates symlinks so home-directory configs stay connected to the repository and receive updates immediately after a Git pull. Use --copy for a one-time import on machines where the repository will not remain.

Font installation is intentionally separate from --all; use ./bootstrap.sh --fonts or explicitly choose the fonts option in the interactive menu.

Recommended modes:

# Keep the clone and apply future Git updates immediately (default).
./bootstrap.sh --all

# Import everything once, then allow removing ~/dotfiles safely.
./bootstrap.sh --copy --all

Importing On A Machine

  1. Clone or bootstrap this repository. A directly executed bootstrap.sh uses the clone containing the script, even when it is not at ~/dotfiles.
git clone https://github.com/gustmrg/dotfiles.git ~/dotfiles
cd ~/dotfiles
./bootstrap.sh
  1. Choose optional configs in the prompt. You can select multiple options with commas or spaces, such as 1,3 or 1 2 3.

  2. If a target file, directory, or symlink already exists, the script backs it up under ~/.dotfiles-backup/<timestamp>/ and then applies the repo version.

  3. After installing OpenCode or Claude settings, restart those tools so they reload config files.

For unattended setup, use flags instead of the prompt:

./bootstrap.sh --minimal
./bootstrap.sh --opencode --skills
./bootstrap.sh --codex
./bootstrap.sh --all
./bootstrap.sh --copy --all

Symlink mode is the default and is right for machines where the repository remains and should keep syncing via git pull. Use copy mode for temporary machines, agents, containers, or hosts where you want a one-time import.

In link mode, run dotsync from Zsh to safely fast-forward the repository. In copy mode, pulling only updates the repository; rerun ./bootstrap.sh --copy to apply the new files to your home directory.

If the repository path cannot be inferred, set it explicitly:

DOTFILES_DIR="$HOME/src/dotfiles" ./bootstrap.sh --link --all
dotsync "$HOME/src/dotfiles"

If you already used symlink mode but later want to remove this repository, first materialize the configs as real files:

./bootstrap.sh --copy --all
rm -rf ~/dotfiles

Updating

From an interactive Zsh shell, run:

dotsync                      # uses $DOTFILES_DIR, or ~/dotfiles
dotsync "$HOME/src/dotfiles" # or pass the clone explicitly

dotsync runs git pull --ff-only on the clone. It refuses to pull when the repository has uncommitted changes, and it never merges or rebases. Commit, stash, or discard local changes first.

After a pull:

  • Linked configs (the default) are updated immediately.
  • In copy mode, dotsync reminds you to rerun ./bootstrap.sh --copy to apply the new files.
  • ~/.claude/settings.json is always a local copy that bootstrap never overwrites. Port repo changes into it by hand (see claude/README.md).
  • ~/.codex/AGENTS.md follows the install mode (symlink by default). Codex skills are always copied. Rerun ./bootstrap.sh --codex to refresh them.
  • The T3 Code theme is always copied, and selected through the t3 CLI when available. Rerun ./bootstrap.sh --t3code to refresh it.

Contents

  • opencode/ - OpenCode agents and settings.
  • claude/ - Claude Code settings.
  • codex/AGENTS.md - Global Codex instructions linked or copied to ~/.codex/AGENTS.md.
  • codex/skills/ - Codex-specific skills copied into ~/.codex/skills.
  • agents/skills/ - Skills shared by multiple agent tools via ~/.agents/skills.
  • shell/ - Shell startup configuration copied or linked into the home directory.
  • git/ - Git user defaults, aliases, and global ignore rules.
  • ghostty/ - Ghostty terminal configuration, including macOS overrides applied through an optional config.local include.
  • t3code/ - T3 Code themes copied into $T3CODE_HOME/userdata/themes (default ~/.t3).
  • fonts/ - Optional user-local installer for Fira Code, IBM Plex Mono, and Source Code Pro.
  • vscode/ - VS Code and Cursor editor configuration assets.
  • vscode/anysphere.cursor-themes-0.0.2/ - Cursor theme extension files for VS Code-compatible editors.

VS Code

The VS Code directory archives the Cursor theme extension so the themes can be restored manually on a new machine. See vscode/README.md for the install steps and available theme names.

VS Code settings are intentionally not symlinked; use the editor's native Settings Sync for live settings, keybindings, and extension state.

Maintenance

  • Keep machine-specific secrets and credentials out of this repository.
  • Configure GitHub authentication per machine. With GitHub CLI, run gh auth setup-git; native credential helpers are also supported.
  • Prefer adding small, documented configuration files over large generated editor state.
  • Update the relevant directory README when adding new configuration areas.

About

Personal editor and agent configuration files for reuse across machines.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages