You are a homebrew user and you have a new Mac. If you don’t want to use Apple’s migration tool to copy over everything you might be faced with running
brew install [formula] for everything you have installed.
Unless you have a spare afternoon to do this you can achieve the same things with a few commands and be done in minutes, leaving you to get on with something more interesting.
On your old mac you can output a list of installed software from homebrew.
By piping this into a file you can create a text file containing all of your installed software.
brew list > homebrew.txt
Now you can copy this to your new Mac by Airdrop if you are on the same network,
scp or using a cloud service.
Once you have the file on your new Mac and assuming you have homebrew setup you can install all of the software with a single command
cat homebrew.txt | xargs brew install
You might find that homebrew has removed some formulae since you installed it. If this is the case just edit the file and remove the formula that is no longer available.
If you have your dotfiles in git repository you’ve suddenly got a pretty portable setup.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Listening to BBC Radio with mpv
The BBC publishes high quality 320 kbps HLS AAC streams that can be used to listen to radio from the command-line using mpv. Here are the URLs and some aliases to start listening quickly.
Vim: So long Pathogen, hello native package loading
Vim 8 added a native way to load third-party packages. This means, for me at least, there is no longer any need to use a third party plugin helper like Pathogen.
Linux and Unix more command tutorial with examples
Tutorial on using more, a UNIX and Linux command for viewing the contents of a file or files one screen at a time. Examples of viewing a file, viewing multiple files, searching using regular expressions and opening the file in a text editor.