Backup/restore most of your Mac’s dev tools easily

I was about to make a joke on Twitter the other day, saying how I move to a new Mac is basically about this command:

brew install yarn nvm cowsay fortune tree direnv gh git-lfs imagemagick jq qpdf webp

Because most of the tools I often use (besides V…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by jozsefDevs

I was about to make a joke on Twitter the other day, saying how I move to a new Mac is basically about this command:

brew install yarn nvm cowsay fortune tree direnv gh git-lfs imagemagick jq qpdf webp

Because most of the tools I often use (besides VS Code) are living in the terminal installed by brew

That's when I was discovering that brew actually has a subcommand called bundle. 🤯🤯🤯

Basically, it generates a "Brewfile" for you (like your beloved package.json files in node projects), writing out a list of packages (called formulaes here) that you have installed.

All in all, it's a brilliant way to move all your devtools quickly from one Mac to another.

Give it a try!

1️⃣ Generate a Brewfile (acting as your lockfile) with
brew bundle dump

This file is totally human-readable, so when you cat it, you should see something like:

tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "cowsay"
brew "direnv"
brew "fortune"
brew "imagemagick"
brew "jq"
brew "neovim"
brew "nvm"
brew "qpdf"
brew "ripgrep"
brew "tree"
brew "yarn"
cask "firefox"
cask "font-hack-nerd-font"
cask "iterm2"
cask "signal"

2️⃣ Carry this Brewfile to your other machine, and just type

brew bundle install

It will install all the dependencies listed in your Brewfile.

That's it! 💪


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by jozsefDevs


Print Share Comment Cite Upload Translate Updates
APA

jozsefDevs | Sciencx (2022-11-26T22:00:23+00:00) Backup/restore most of your Mac’s dev tools easily. Retrieved from https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/

MLA
" » Backup/restore most of your Mac’s dev tools easily." jozsefDevs | Sciencx - Saturday November 26, 2022, https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/
HARVARD
jozsefDevs | Sciencx Saturday November 26, 2022 » Backup/restore most of your Mac’s dev tools easily., viewed ,<https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/>
VANCOUVER
jozsefDevs | Sciencx - » Backup/restore most of your Mac’s dev tools easily. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/
CHICAGO
" » Backup/restore most of your Mac’s dev tools easily." jozsefDevs | Sciencx - Accessed . https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/
IEEE
" » Backup/restore most of your Mac’s dev tools easily." jozsefDevs | Sciencx [Online]. Available: https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/. [Accessed: ]
rf:citation
» Backup/restore most of your Mac’s dev tools easily | jozsefDevs | Sciencx | https://www.scien.cx/2022/11/26/backup-restore-most-of-your-macs-dev-tools-easily/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.