ββ¬βββββββββββ¬ β¬ββ¬ββ¬ β¬β¬βββ
βββββ€ β β¬βββ€β β β βββ€ββ
β΄ β΄βββββββ΄ β΄β΄ββ΄ β΄ β΄ β΄β΄βββ
@megalithic πΏ
bootstrap.sh is the MacOS first-install and migration entry point. Run it in
an interactive terminal on a new machine or when the machine still needs base
setup. Do not run it as root.
Run the current remote script:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/megalithic/dotfiles/HEAD/bootstrap.sh)"Without flags, bootstrap prompts for a hostname and defaults to the current short hostname. To select a host without the prompt:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/megalithic/dotfiles/HEAD/bootstrap.sh)" -- --host myhostnameFrom an existing checkout, run:
cd ~/.dotfiles
sh bootstrap.sh --host "$(hostname -s)"Use --force only when bootstrap should overwrite conflicting whole-file
dotfile targets:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/megalithic/dotfiles/HEAD/bootstrap.sh)" -- --force --host myhostnameBootstrap has no dry-run mode. It changes machine state: it may install Command
Line Tools and Homebrew, install or update standalone mise at
~/.local/bin/mise, set the MacOS hostname, clone or update ~/.dotfiles,
apply managed links, install tools/packages/apps, run first-install hooks, set
fish as the login shell, and run final health
checks. If an existing checkout is dirty, the current script stashes its
changes before pulling.
Bootstrap normalizes the selected hostname, exports it as MISE_ENV, and uses
that value while mise loads configuration. After dotfiles are applied, mise
merges this host "overlay" over the global config:
~/.config/mise/config.toml
~/.config/mise/config.$MISE_ENV.toml
Confirm the active global and host configuration without installing missing tools:
MISE_AUTO_INSTALL=false mise cfgAfter bootstrap succeeds, fully quit and reopen the terminal so the fish login
shell and host environment take effect. Bootstrap runs a limited
mise/scripts/check-system check before exiting; this first pass skips the full
missing-tool check. If it reports failures, restart the terminal and run the
full check:
mise run doctorA MacOS App Management permission failure also requires quitting and reopening the terminal after granting access, then rerunning bootstrap.
After initial bootstrap, use the recurring machine updater instead of rerunning bootstrap:
mise run upNormal runs mutate machine state and stream each phase directly to the terminal. To preview tasks without running them, use mise's built-in dry-run mode:
mise run --dry-run upThe same flag works with any task: mise run --dry-run update:dotfiles. It prints
commands without executing them; it does not inspect commands inside scripts.
To preview convergence itself, run MISE_CONFIG_DIR=$PWD/config/mise mise bootstrap --dry-run --update --upgrade --skip task,user.
tasks.up runs mise/scripts/up: warn about dirty Git status, then run each
step even if an earlier one fails, with a pass/fail/skip summary and nonzero
exit on failure:
mise self-update --yes, thenmise plugins update --yesmise bootstrap --only <part>once per part, so one failing part can't block the rest: dotfiles; packages and files (--update --upgrade); tools (--upgrade); macOS defaults and LaunchAgentsupdate:nvim- Neovim plugins and Treesitter parsersupdate:fnox- secret cache and generated artifacts (skipped ifop whoamifails)update:ai- Pi, rtm, Ultimate.app, and Rex integrationreload:hammerspoon
First-install one-offs belong to mise's built-in bootstrap task: guarded
setup:secrets, setup:system, setup:ai, and the host's optional setup:host.
Without a terminal, missing interactive setup is skipped with instructions.
AI tools and agents live together in config/mise/conf.d/ai/mise.toml;
mise/scripts/ai status checks their health without changing anything.
Local models are opt-in: mise run setup:ai -- --models (~66 GB).
Native app and daemon builds live in megalithic/swifties; bootstrap does not build them. Helium's tool postinstall configures its profile.
Existing real files and conflicting targets are preserved by refusal. Inspect and reconcile conflicts before retrying; do not use force to bypass them.
Managed files mirror their destinations: config/<path> deploys to
~/.config/<path> and home/<path> to ~/<path>, each as a per-file symlink
from a Git-indexed tree ([dotfiles] in config/mise/config.toml). Only
tracked files deploy, so untracked or ignored files never leave the repo. Add a
tracked file at the matching source path instead of a new declaration.
Exception entries (~/bin, generated ~/.s3cfg, the Pi lat shim, host-specific
~/.ssh/config) are listed next to the trees. Wrapper scripts live in
home/.local/bin/ and deploy to ~/.local/bin, while bin/ contains user
scripts deployed as ~/bin.
Source-only code (browser extensions, servers, build inputs) lives in tools/;
generation inputs that never deploy as-is (fnox shared config, templates) live
in mise/templates/.
Task declarations live in config/mise/config.toml. Multi-step mise helpers
live in mise/scripts/; shared Swift sources and their signed build helper stay
in lib/. List current public tasks with:
mise tasks lsI am pushing updates constantly, so there are NO guarantees of stability with my config!
Warning
I highly recommend you dig into the scripts and configs to see what all is going on (because it does a lot more than what I'm describing in this README) before you -- all willy-nilly, throw caution to the wind -- install a stranger's shell scripts. π€£
- mise
- ghostty
- tmux
- fish
- neovim
megaforestfor all the colours/themes- jetbrains mono font
- hammerspoon
- kanata (Leeloo v1.13/ZMK)

