Skip to content
SmathsPublic

About

macOS dotfiles for fast, repeatable snarfum machine setup.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Dotfiles

Personal dotfiles for a reproducible development shell and workstation setup, centered on macOS with a Windows host-app bootstrap and a Debian/Ubuntu WSL or server shell setup.

Supported platforms

Platform Support Entry point Scope
macOS 14+ Primary install/bootstrap.sh Core workstation packages, Zsh config and runtimes
Windows Secondary install/bootstrap.ps1 Windows host applications via winget; shell setup is in WSL
Debian / Ubuntu LTS Secondary install/bootstrap.sh CLI packages, shared Zsh/tmux config, and Pi via mise on servers or WSL
Other Linux Config reuse only None No generic bootstrap

See platform details.

Quick start

macOS (full personal machine):

git clone https://github.com/Smaths/.dotfiles.git ~/.dotfiles
sh ~/.dotfiles/install/bootstrap.sh

macOS baseline, such as a work machine, with the managed macOS settings:

sh ~/.dotfiles/install/bootstrap.sh --profile slim --macos-settings

See package profiles and groups for --with/--without.

Windows PowerShell (review the scripts before running):

git clone https://github.com/Smaths/.dotfiles.git $HOME/.dotfiles
powershell -ExecutionPolicy Bypass -File $HOME/.dotfiles/install/bootstrap.ps1

On a Debian or Ubuntu server, or inside Debian or Ubuntu on WSL, run this as the user whose shell you want to configure. On WSL, clone inside the Linux filesystem (not /mnt/c). Bootstrap uses sudo only for apt if needed:

git clone https://github.com/Smaths/.dotfiles.git ~/.dotfiles
sh ~/.dotfiles/install/bootstrap.sh --dry-run --force-shell
sh ~/.dotfiles/install/bootstrap.sh --force-shell

--force-shell makes Zsh your login shell for new sessions. Omit it to keep Bash (or your current login shell) and try Zsh with exec zsh -l. Bootstrap leaves ~/.bashrc and ~/.profile untouched. The default Debian install is already slim: it sets up mise and the latest Pi, without Go, Node.js, or pnpm. In a fresh Zsh login session, run pi --version to check the install, then pi to start it. Pass --skip-mise for shell setup without mise and Pi, or --skip-packages --skip-plugins for offline config-only setup with Zsh already installed. See the Debian platform notes if you use a custom ZDOTDIR.

Safety defaults

Use --dry-run to see what bootstrap would do. Interactive runs ask before making changes: macOS and Debian show a preflight plan, and Windows shows the missing winget IDs. Unattended installs require --yes.

  • Your files: Existing shell config files are backed up before being replaced; correct symlinks are left alone. Backups get unique timestamps on repeated runs.
  • Updates: Fresh installs use current versions from the platform's package sources, with two macOS exceptions: MySQL 8.4 LTS and iStat Menus 6. Bootstrap doesn't run a general package upgrade: macOS package upgrades need --upgrade-packages; Windows installs only missing exact IDs; Debian/Ubuntu lets apt resolve missing packages and dependencies. Zsh plugins start at their upstream default branch tips and advance only with --upgrade-plugins. See plugin updates.
  • System settings: macOS settings are optional: run settings.zsh or pass --macos-settings to bootstrap. Debian's login shell changes only with --force-shell.
  • Removal: There is no uninstall command. Only remove links or references after confirming this repo owns them. Review package removals individually, and preview the effect before deleting a regular config file or running broad package cleanup. See backup and restore.

Managed scope

macOS is the main workstation setup. Windows bootstrap installs host apps only; Debian/Ubuntu uses the same Zsh and tmux config in WSL or on a server.

What gets installed or linked
  • Packages: macOS installs package groups from install/platforms/macos/packages/: the full profile by default, slim for a baseline machine, and creative only with --with creative. Windows host apps come from install/platforms/windows/winget-packages.txt; Debian CLI packages come from install/platforms/debian/apt-packages.txt.
  • Shell and app config: macOS links Zsh, tmux, Ghostty, Git delta/lazygit, mise, and uv config. Debian links .zshrc and .zprofile under ZDOTDIR (or home), links tmux config, and installs the same Zsh plugins as macOS. Windows does not link native Zsh files. The only ~/.gitconfig change is a single delta include.path entry.
  • Tool ownership: mise supplies Go, Node.js, Pi, and pnpm on macOS from config/mise/config.toml, and only Pi on Debian/Ubuntu from install/platforms/debian/mise.toml. Project declarations can override those versions. Mise shims are on the managed Zsh login PATH, not automatically available to GUI or other non-shell processes. uv manages Python interpreters and environments; Homebrew owns macOS native apps. Project libraries belong in project manifests and lockfiles, not shared user-level environments.
  • Manual and local config: Keep machine-specific Zsh settings in ignored config/zsh/local.zsh or config/zsh/local.d/*.zsh, not tracked modules. Alfred workflow and theme copies in config/alfred/ need manual import; see Alfred setup. Rectangle preferences in config/rectangle/ also need manual import; see window snapping setup.

See Operations for update, rollback, and check commands. Architecture covers file ownership and linking. See also Contributing and Security.

Validation

Run the repository's static and shared-helper checks:

bash tests/check.sh

Platform-specific verification commands and CI coverage are documented in Operations.

About

macOS dotfiles for fast, repeatable snarfum machine setup.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages