Consistent command-line experience across macOS, Linux, and Windows Subsystem for Linux
These files backup, restore, and sync my system settings with ubiquitous shell scripting. They're called "dotfiles" because they typically are named with a leading period (e.g. .zshrc
), which makes them hidden by default on Unix-like operating systems.
-
(macOS only) Log into Mac App Store so macOS apps specified in
Brewfile
may be installed. -
Clone repository and configure machine:
git clone https://github.com/mattrohr/dotfiles.git && cd dotfiles && ./install.sh
- See
manual.md
for manual installation steps.
If .secret
exists, it will be sourced in .zshrc
along with the other files. You may use this to add commands, files, and directories you don’t want to commit to a public repository like server credentials (i.e. ~/.ssh/config
), blacklisted websites (i.e. /etc/hosts
), and cryptographic keys (i.e. ~/.gnupg/
).
Scripts are idempotent: they can safely be run again. This is useful when settings get reset, like when macOS updates clobber Touch ID sudo authentication.
Finally, if you're new to macOS, read tips and tricks.
- Mathias Bynens for his dotfiles repository structure
- Kevin Suttle for his macOS defaults catalog, which provides sensible documentation for
.macos
- Anish Athalye for his prompt theme