Skip to content
Jay edited this page Aug 17, 2025 · 9 revisions

How to use with your dotfiles

This Wiki only applies to this original repo, if you try to use it as a guide with another fork you will probably encounter issues.

It's always recommended to make a manual backup of your dotfiles.

  1. Clone and delete my dotfiles.
git clone https://github.com/jaycedam/mac-setup.git ~/dev/mac-setup
rm -rf ~/dev/mac-setup/dotfiles/*
  1. Back up your dotfiles and Brew packages. This moves your dotfiles to the project directory, then creates symlinks back to $HOME. This way allows you to manage all your configs with git and it's easier to sync to a remote repo. It will also back up your Brew packages into a Brewfile (you need to have Brew installed):
bash ~/dev/mac-setup/main.sh

Then select the option to update the backup.

Now add your remote repository.

Then you can commit your changes and sync to your remote repo.

Tip

If you install new Brew packages, just repeat the step 2 above to update your backup.

Clone this wiki locally