To get started, clone the repository into the home directory:
git clone https://github.com/michaelbrusegard/dotfiles.git ~/dotfiles
When finished switch to use SSH for the repository:
cd ~/dotfiles && git remote set-url origin [email protected]:michaelbrusegard/dotfiles.git
Heads-up: The dotfiles in this repository are incomplete because I also maintain private dotfiles with sensitive information that I want to keep secure. The setup for the private dotfiles is the same.
Before setting up MacOS, System Intergrity Protection (SIP) needs to be partially disabled for the yabai tiling window manager to work correctly.
-
Turn off the mac, then press and hold the power button until "Loading startup options" appears. Click Options, then click Continue.
-
In the menu bar, choose
Utilities
, thenTerminal
-
Run this:
csrutil enable --without fs --without debug --without nvram
Then go through each script below making sure it completes correctly before running the next.
zsh ~/dotfiles/macos/scripts/brew.zsh
zsh ~/dotfiles/macos/scripts/defaults.zsh
cd ~/dotfiles && /opt/homebrew/bin/stow macos
zsh ~/dotfiles/macos/scripts/login.zsh
Espresso is my personal home server used for hosting various appications and services.
sh ~/dotfiles/espresso/scripts/apt.sh
cd ~/dotfiles && stow --adopt espresso && git restore .
sh ~/dotfiles/espresso/scripts/login.sh
Generate new SSH key for GitHub by running:
zsh ~/dotfiles/shared/scripts/ssh.zsh
Generating a new GPG key for GitHub by running:
zsh ~/dotfiles/shared/scripts/gpg.zsh
- Mathias Bynens and his macOS defaults
- Dries Vints and his SSH script
- Antione Martin and his GPG script
- Elliot's fast and beautiful .zshrc prompt
- Michael Bao's dotfiles
- Josean Martinez's dotfiles
- TheBlueRuby's awesome Arch Linux setup
- XLNC