This repository contains my dotfiles. My apps and settings when setting up a new machine.
On a fresh install of macOS, git is not installed by default. Download this repository, and run the following commands:
curl -LJO https://github.com/chrisrutz/dotfiles/archive/refs/heads/main.zip
unzip -q dotfiles-main.zip
mv dotfiles-main ~/.dotfiles
rm dotfiles-main.zip
cd ~/.dotfiles
bash install.sh
The install script will do the following:
- change the default shell to ZSH
- install Xcode Command Line Tools (during Homebrew installation)
- install Homebrew
- Homebrew packages, casks, and Visual Studio Code Extensions via Homebrew Bundle (see Brewfile)
- install Oh My Zsh
- install iTerm2 shell integration
- install NVM
- install the latest ruby version using rbenv
- copy dotfiles to home directory
copy Visual Studio Code personal profile- authenticate with GitHub using GitHub CLI
- install some default gems
- pry
- rubocop
- bundler
- configure MacOS default settings
After finishing the installation, restart the system.
The script will set the following MacOS default settings:
- Ask to keep changes when closing documents
- Expand save panel by default
- Expand print panel by default
- Disable the "Are you sure you want to open this application?" dialog
- Automatically hide and show the Dock
- Don't show recent applications in Dock
- Only show open applications in Dock (remove all apps from Dock)
- Save screenshots to the desktop
- Save screenshots in PNG format
- Don't show thumbnail of screenshot after taking it
- Show all filename extensions
- Show hidden files
- Show the status bar
- Show the path bar
- Set the default view style to list view
- Keep folders on top when sorting
- Set search scope to current folder
- Disable warning when changing a file extension
- Set Desktop as the default location for new Finder windows
- Avoid creating .DS_Store files on network volumes
- Avoid creating .DS_Store files on USB volumes
- Automatically open a new Finder window when a volume is mounted
- Empty Trash securely
- Disable the warning when emptying the Trash
- Keep folders on top when sorting
- Hide all desktop icons
- Hide external disks on the desktop
- Hide removable media on the desktop
- Don't reveal Desktop when clicking wallpaper
- Set mouse and trackpad speed
- Enable tap to click
- Enable two-finger right-click
- Swipe between pages with three fingers
- Swipe between full-screen apps with four fingers
- Mission Control with three-finger swipe up
- App Exposé with three-finger swipe down
- Fn key opens emoji and symbols
- Disable auto-correct
- Disable smart quotes
- Disable smart dashes
- Disable automatic capitalization
- Disable automatic period substitution
- show battery percentage in menu bar
- Show battery percentage in menu bar
- Don't show Siri in menu bar
- Disable automatically rearrange Spaces based on most recent use
- Group windows by application
- Save to disk by default
- Allow Handoff between this Mac and your iCloud devices
- Prevent Time Machine from prompting to use new hard drives as backup volume
- Require password immediately after sleep or screen saver begins
- Enable FileVault
- Disable automatic adjustment of display brightness
- Start screensaver after 5 minutes of inactivity