These are general instructions relevant to MacOS setup. You probably want to track your own brews. My stuff for these live in my home but I've left the instructions in main.
Zsh has been the "default shell" since Catalina.
I prefer bash, or, at least, I prefer not needing to maintain both bash and zsh files, and zsh is not the default on Ubuntu. And this was initialised as close to Ubuntu's skel as possible.
However...
Important
MacOS uses an ancient version of bash.
3.2.57.
You can map from a given macOS release on the Releases page by expanding the drop downs and searching for bash-, which will link to a specific tag on Apple's bash source mirror/fork.
At the time of writing, it's close to 20 years old for the major version.
Bash [source] [manual] 3.2.0 was released 28th September 2006. 3.2.57, the patch that MacOS is frozen on since, can be seen on the index as released on the 7th of November 2014.
- See your brews at ~/.MacOS/Brewfile.
- Restore brews
brew bundle --file=~/.MacOS/Brewfile
- Backup brews
brew bundle dump --file=~/.MacOS/Brewfile --force
- Occasionally necessary fix to outdated Xcode Command Line Tools;
sudo rm -rf /Library/Developer/CommandLineTools && sudo xcode-select --install
- See the lockfile at ~/.MacOS/Brewfile.lock.json if necessary.
For GPG on Mac you will need both the GPG brew and the pinentry-mac brew.
You'll also need to set ~/.gnupg/gpg-agent.conf to:
pinentry-program /opt/homebrew/bin/pinentry-mac
The settings expect cowsay to already be installed.
Profiles exported to ~/.MacOS/iterm_export/Profiles.json
Settings -> Profiles -> "Other Actions..." -> "Import JSON Profiles..."
Full manual non-anonymised preferences backup (including profiles and arrangments) exported to ~/.MacOS/iterm_export/com.googlecode.iterm2.plist
Settings -> General -> Preferences -> "Load preferences from a custom folder or URL" -> (browse to directory containing this folder) -> "Save changes" -> (Manually)
From the App Store. Followed by iStat Menus Helper. See Bjango's GitHub page if you'd like. Then just run the ~/.MacOS/iStat_Menus_Settings.ismp file.