This repository contains all my Mac dotfiles, complete with scripts for an easy restore and instructions for manual steps.
I currently have two profiles, represented by two branches (Personal and Work), apart from the master branch that includes configs in common between the two. The main differences are in the apps installed with brew and some changes in the config files.
Make sure to export all settings from the app that need a manual backup:
-
Raycast
- Export .rayconfig file running the command "Export Settings & Data" in raycast.
- When asked for password use the one in the Password Manager.
- Save .rayconfig file inside the config folder of the project.
- Clone the project wherever you want, using the command:
git clone git@github.com:AlexPagnotta/alex_dotfiles.git- If you are not me, you probably would want to change something in the dotfiles, so edits the script/files and adjust them to your needs!
Installs all brew packages, cask apps and fonts, run the brew.sh script first, and then the profile-specific script according to the branch you are in, so brew_personal.sh or brew_work.sh.
This script will set up my dev environment.
Executing this script will symlink dotfiles to your home directory, these include ssh config, zshrc, git config etc.
Configures Cursor complete with extensions, and the Warp terminal.
Run each script with the following commands:
sh brew/brew.sh
sh config/config.sh
sh dev/dev.sh
sh editors/editors.shSee the Manual_Settings.md file for more info.
-
Reduce dock hover delay
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
Zsh shell is configured to run ssh-add -A at every start, this way ssh keys are always available,
For this to work you have to add your private key file to the agent using this command:
ssh-add -K ~/.ssh/private_key_fileSSH agent will only include keys protected by a password, so if you didn't set one while creating the key, you can do it by running:
ssh-keygen -p -f ~/.ssh/private_key_fileOnce you have done it, you can add the key to the agent, after that, if you want, you can remove the password with the same command you used to set it.
- Import settings from the .rayconfig file in the config folder of the project.
Hyperkey is installed automatically from the script, but you need to change the settings manually.
- Set "Remap physical key to hyper key" to "caps lock"
- Enable "Quick press caps lock to execute"
- Remove all checkboxes from "Apply hyper key modifiers..."
- Enable "Open on login"
