My version of dotfiles with a CLI to manage installation process and updates.
Tested on macOS: Big Sur and Monterey.
Take and use at your own risk.
Very easy installation that brings a brand new installation of macOS up to full setup with just a few commands.
Uses:
- Homebrew - packages Brewfile
- homebrew-cask - packages Brewfile
- n - Node.js and npm version management
- Node.js + npm LTS
- Mackup - sync application settings
- Hammerspoon - Window management and MacOS automation
-
Install the CLI with
curl
curl -Ls "https://raw.githubusercontent.com/mattiasalm/dotfiles/master/remote-install.sh" | zsh
-
Run software update and install Xcode with command:
dotfiles prepare
It may cause system to reboot.
$ dotfiles
Usage: dotfiles <command>
Commands:
help - Show this help message
prepare - Prepare system for further installation
all - Run all installation steps
managers - Install application managers
applications - Install applications
macos-settings - Applies macOS settings
configuration - Add system configuration
update - Update system, managers and applications
To do a full setup of the system just run the dotfiles all
command.
Some manual steps are required after the automatic setup is finished.
When the setup is finished sign in to Dropbox and then run mackup restore
to bring back app configurations.
Run Hammerspoon and activate accessibility to ensure full functionality.
Update SSH keys in all places needed, such as GitHub. GitHub SSH key instructions.
If support for multiple SSH keys is needed, adjust the ~/.ssh/config
file with the needed information. Example of config
file:
# Work bitbucket
Host bitbucket.org
IdentityFile ~/.ssh/id_rsa
# Anything else = github
Host *
IdentityFile ~/.ssh/id_ed25519
Just make sure that all SSH keys is listed in the SSH agent by typing
$ ssh-add -l