Skip to content

Instantly share code, notes, and snippets.

@nguyenkims
Created October 10, 2017 09:53
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save nguyenkims/564cb87c58b982d8e0967744c91dfd6b to your computer and use it in GitHub Desktop.
Save nguyenkims/564cb87c58b982d8e0967744c91dfd6b to your computer and use it in GitHub Desktop.
Sync sequel pro favorites between macs

The sequel pro favorites can be shared between Macs using cloud storage service like Dropbox, Google Drive, OneDrive, etc.

The trick is to create a file that will be synced using these cloud services and sequel pro favorites file is just a symlink to this file.

The below script is used for OneDrive but it can also work for Dropbox and other cloud storages.

  1. Copy the current sequel pro favorites file

cp ~/Library/Application\ Support/Sequel\ Pro/Data/Favorites.plist ~/OneDrive/SequelPro.plist

  1. Delete the sequel pro favorites file

rm ~/Library/Application\ Support/Sequel\ Pro/Data/Favorites.plist

  1. Create a symlink that uses the synced file

ln -s ~/OneDrive/SequelPro.plist ~/Library/Application\ Support/Sequel\ Pro/Data/Favorites.plist

and that's all!

@GarryOne
Copy link

GarryOne commented Mar 1, 2020

You need to Sequel Pro closed, otherwise it will rewrite the file every time you re-open it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment