Skip to content

macOS installer (beta) and a checklist menu on every system - #3

Merged
rhmatzeka merged 2 commits into
mainfrom
feat/macos
Nov 1, 2026
Merged

rhmatzeka merged 2 commits into
mainfrom
feat/macos

Conversation

@rhmatzeka

Copy link
Copy Markdown
Owner

What

  • macOS support (beta): bash <(curl -fsSL https://dotfiles.rahmateka.my.id) now works on a Mac. macos/install.sh installs base, shell, tmux, nvim, terminal (Ghostty), browsers (w3m), web (PHP, Composer, MariaDB, phpMyAdmin) and rust through Homebrew (installed first when missing). The top-level installer waits for Apple's Command Line Tools if they are missing.
  • Checklist menu (lib/menu.sh, shared by Linux and macOS): type a number to check or uncheck a part, a all, n none, Enter to continue, q to quit. Parts that are already installed say so and start unchecked. Parts this system cannot run (on a Mac: desktop, apps; on Arch/Fedora/openSUSE: desktop) are listed separately and cannot be selected: a, --all and --only skip or refuse them with the reason. A summary with the big downloads comes before the last "Continue?".
  • lib/parts.sh: the Oh My Zsh, NvChad, elinks and rustup steps, used by both installers.
  • zshrc loads Homebrew (brew shellenv) and its fzf key bindings on a Mac; nothing changes on Linux.
  • Uninstall no longer needs tac; macos/uninstall.sh reuses it.
  • README: menu preview, a "Moving to a Mac" section with a Linux/macOS table, and macOS in the supported systems.

Everything macOS runs is written for Apple's bash 3.2 (no associative arrays, no bare expansion of empty arrays under set -u).

Tested

  • CI macos-latest with /bin/bash 3.2.57: syntax, tests/menu.sh (scripted answers), dry run of every part, desktop/apps refused, real install of shell, tmux, browsers and rust in a temporary HOME, zsh loads the config, uninstall removes the links.
  • CI Ubuntu: shellcheck, menu test, dry run, real install + uninstall as before.
  • Locally on Debian 13: same checks, plus the macOS installer driven with a fake uname.

Not tested yet: a run by hand on a real Mac, and real installs of nvim, terminal (Ghostty cask) and web on macOS (dry run only).

- macos/install.sh: base, shell, tmux, nvim, terminal (Ghostty), browsers, web and rust through
  Homebrew, written for the bash 3.2 macOS ships. desktop and apps are listed but cannot be picked.
- lib/menu.sh: toggle-by-number checklist shared by Linux and macOS; shows what is already
  installed, keeps parts this system cannot run out of "all" and --only, and summarises the big
  downloads before asking to continue.
- lib/parts.sh: Oh My Zsh, NvChad, elinks and rustup steps used by both installers.
- install.sh detects macOS, waits for the Command Line Tools, runs the platform installer with the
  same bash; uninstall no longer needs tac; zshrc loads Homebrew and its fzf bindings.
- CI: menu test with scripted answers, and a macos-latest job running everything with /bin/bash.
@rhmatzeka
rhmatzeka merged commit 657aeb3 into main Nov 1, 2026
4 checks passed
@rhmatzeka
rhmatzeka deleted the feat/macos branch November 1, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant