These are the dotfiles and scripts that I use to setup and maintain my macOS-based devices.
On a new machine or fresh macOS install: before you can do much on the command line (like using git), Xcode Command Line Tools need to be installed and the license agreed to.
- Open Applications > Utilites > Terminal
- Install Xcode Command Line Tools
xcode-select --install - Click install, agree to license
You can clone this repository wherever you want. I like to keep it in ~/Projects/dotfiles.
git clone https://github.com/jsnmrs/dotfiles.git && cd dotfilesThe dotfiles.sh script will run a copy all of the dotfiles (.*) in home/ into to your $HOME folder. The script creates backups of replaced files in a timestamped ~/dotfiles-YYYY-MM-DD-HHMMSS folder.
Run it: source dotfiles.sh
The install.sh script will:
- Install (or update) Homebrew
- Install everything from Brewfile (formulae, fonts, casks, Mac App Store apps via
mas) - Set up Ruby via rbenv
- Install latest stable Ruby version
- Install global Ruby gems (bundler, github-pages)
- Set up Node via NVM
- Install latest stable Node.js
- Install global Node modules (npm-check-updates, npm-check, pa11y-ci, pa11y-ci-reporter-html)
- Set up Composer
- Copy composer.json into
~/.composer - Run composer update
- Copy composer.json into
- Install Docksal
- Configure macOS dock icons and spacers
- Configure extensive macOS system preferences including:
- Security & privacy settings
- Mouse & keyboard preferences
- Finder settings
- Safari settings
- Terminal & iTerm2 settings
- System update preferences
- And many other system-level configurations
Run it: source install.sh
brew list– list installed Homebrew formulae, including casksmas list– list installed applications from Mac App Storenpm list -g [--depth=0]– list globally installed node modulesgem query --local– list locally installed Ruby gemscomposer global show– list globally installed Composer packages