Repository navigation
macOS installer (beta) and a checklist menu on every system - #3
Merged
Merged
Conversation
- 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.
…runner's own rustup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
bash <(curl -fsSL https://dotfiles.rahmateka.my.id)now works on a Mac.macos/install.shinstalls 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.lib/menu.sh, shared by Linux and macOS): type a number to check or uncheck a part,aall,nnone, Enter to continue,qto 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,--alland--onlyskip 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.zshrcloads Homebrew (brew shellenv) and its fzf key bindings on a Mac; nothing changes on Linux.tac;macos/uninstall.shreuses it.Everything macOS runs is written for Apple's bash 3.2 (no associative arrays, no bare expansion of empty arrays under
set -u).Tested
macos-latestwith/bin/bash3.2.57: syntax,tests/menu.sh(scripted answers), dry run of every part,desktop/appsrefused, real install of shell, tmux, browsers and rust in a temporary HOME, zsh loads the config, uninstall removes the links.uname.Not tested yet: a run by hand on a real Mac, and real installs of
nvim,terminal(Ghostty cask) andwebon macOS (dry run only).