Install script from previously captured info
| #!/bin/zsh | |
| # Always run in zsh, even if started with "sh" or "bash" | |
| if [ -z "$ZSH_VERSION" ]; then exec /bin/zsh "$0" "$@"; fi | |
| # ===================================================================== | |
| # install.sh - STEP 2. Run this on your NEW Mac. | |
| # | |
| # Installs everything still in install-list.txt, restores the app | |
| # settings saved in Settings/, then writes install-report.txt: | |
| # everything that didn't install and what's left to do by hand. | |
| # | |
| # Safe to run again: anything already installed is skipped. | |
| # Usage: zsh install.sh | |
| # ===================================================================== | |
| cd "${0:A:h}" || exit 1 | |
| HERE=$PWD | |
| LIST="$HERE/install-list.txt" | |
| REPORT="$HERE/install-report.txt" | |
| WORK="$HERE/.install"; mkdir -p "$WORK" | |
| LOG="$WORK/install-log.txt"; : > "$LOG" | |
| [[ -f $LIST ]] || { echo "Can't find install-list.txt in this folder."; exit 1; } | |
| export HOMEBREW_NO_ENV_HINTS=1 HOMEBREW_NO_INSTALL_CLEANUP=1 MISE_YES=1 | |
| SEP= |