Skip to content
megalithicPublic

About

πŸ—Ώ dotfilery, configuration, environment settings, automation, etc. πŸ›–

Topics

Resources

Stars

229 stars

Watchers

4 watching

Forks

Latest commit

Β 

History

3,993 Commits

Folders and files

Repository files navigation

β”Œβ”¬β”β”Œβ”€β”β”Œβ”€β”β”Œβ”€β”β”¬ β”¬β”Œβ”¬β”β”¬ β”¬β”¬β”Œβ”€β”
β”‚β”‚β”‚β”œβ”€ β”‚ β”¬β”œβ”€β”€β”‚ β”‚ β”‚ β”œβ”€β”€β”‚β”‚
β”΄ β”΄β””β”€β”˜β””β”€β”˜β”΄ ┴┴─┴ β”΄ β”΄ β”΄β”΄β””β”€β”˜
@megalithic πŸ—Ώ

ghostty + tmux + nvim

ghostty + tmux + fish + fzf

Installation

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 myhostname

From 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 myhostname

Bootstrap 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.

Host configuration

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 cfg

After 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 doctor

A MacOS App Management permission failure also requires quitting and reopening the terminal after granting access, then rerunning bootstrap.

Machine updates

After initial bootstrap, use the recurring machine updater instead of rerunning bootstrap:

mise run up

Normal 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 up

The 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:

  1. mise self-update --yes, then mise plugins update --yes
  2. mise 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 LaunchAgents
  3. update:nvim - Neovim plugins and Treesitter parsers
  4. update:fnox - secret cache and generated artifacts (skipped if op whoami fails)
  5. update:ai - Pi, rtm, Ultimate.app, and Rex integration
  6. reload: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.

Layout

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 ls

πŸ‰ Thar be dragons

I 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. 🀣


✨ Accoutrements

megadotfiles logo

About

πŸ—Ώ dotfilery, configuration, environment settings, automation, etc. πŸ›–

Topics

Resources

Stars

229 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages