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.
cd ~/dotfiles/arch && stow -t ~ home && sudo stow -t /etc etc
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



My setup evolves over time, so the screenshots might not reflect the current state of my setup.
Espresso is my personal home server used for hosting various applications and services.
sh ~/dotfiles/espresso/scripts/apt.sh
cd ~/dotfiles/espresso && stow --adopt -t ~ home && sudo stow --adopt -t /etc etc && stow --adopt -t /data data && git restore .
sh ~/dotfiles/espresso/scripts/login.sh
cd ~/dotfiles/shared
stow -t ~ home
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