TarMac is a very simple shell script with no dependency meant to install a per-user homebrew on a blank macOS.
It does surface a couple of homebrew configuration nooks, will nag for git and xcode command-line tools,
and will seed .profile.
Run:
bash -c "$(curl -fsSL https://raw.github.com/farcloser/tarmac/master/init)"
# Alternatively, get a specific version:
# bash -c "$(curl -fsSL https://raw.github.com/farcloser/tarmac/v1.0.0/init)"... or clone it the git way, then call ./init inside the clone.
You will be prompted for a GitHub token, and optionally a bin, tmp, cache and log path.
You can alternatively set the following environment variables:
HOMEBREW_GITHUB_API_TOKEN: GitHub personal token to be used by brewPOSH_BIN: install location, for eg~/ApplicationsPOSH_TMP: temporary directory to be used for temporary files, for eg~/transient/tmpPOSH_CACHE: temporary directory to be used for cache files, for eg~/transient/cachePOSH_LOG: temporary directory to be used for log files, for eg~/transient/log
Then call the script.
Typically, you may migrate / seed stuff from a template or another machine dump.
Dump it:
brew bundle dump --file=MigrateBrewfile
Load it:
brew bundle install --file=MigrateBrewfile
Or any other way to set up the rest of your laptop environment on top of brew.
You need shellcheck (brew install shellcheck).
Note that -o errtrace -o functrace are not recognized by zsh, and that -o nounset
will trip brew bash completion.
Finally, tarmac will not enable bash completion unless POSH_SHELL is set (to bash).
This is typically achieved with ps -p $$ -ocomm= (but mind the leading dash
in some cases). Out of scope for here.