Open 0xdevalias opened 7 years ago
We should make sure to capture this from the old laptop, and then merge that with setup on the new laptop + test if dotfiles auto setup is working as expected.
Looking at https://github.com/0xdevalias/dotfiles/blob/devalias/sublimetext/install.sh we're linking/tracking Preferences.sublime-settings
, but looking on the filesystem, there seem to be other potentially useful files too:
⇒ ls ~/Library/Application\ Support/Sublime\ Text\ 3
Cache/ Index/ 'Installed Packages'/ Lib/ Local/ Packages/
⇒ ls ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages
0_package_control_loader.sublime-package 'Package Control.sublime-package' 'Pretty JSON.sublime-package'
⇒ ls ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
User/
⇒ ls ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
'Package Control.cache'/ 'Package Control.merged-ca-bundle' 'Package Control.sublime-settings' 'Package Control.user-ca-bundle' Preferences.sublime-settings@ oscrypto-ca-bundle.crt
Based on this, I think we would want to at the very least capture Package Control.sublime-settings
, or some data from it:
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Pretty JSON"
]
}
Could it be worth making this entire folder a symlink into our dotfiles directory, then using .gitignore
to not track bits we don't want/need?
How do related issues such as https://github.com/0xdevalias/dotfiles/issues/1 fit in with this?
Is there anything worth saving from my (7+ years) old settings?
Other thoughts/questions:
defaults find sublime
defaults read com.sublimetext.3
defaults read com.sublimetext.4
brew-list
(and could rename it better given how many things it does these days..)~/Library/Application Support/Sublime Text 3/Packages/User
into dotfilesCould it be worth making this entire folder a symlink into our dotfiles directory, then using
.gitignore
to not track bits we don't want/need?
This was implemented in:
install.sh
to symlink entire user settings folder + use sublpm
to install Package Control
by defaultSome other interesting commits around the same time were:
sublpm
'Sublime Text Package Manager' helper scriptbrew-lists
using sublpm
helper scripthttps://packagecontrol.io/docs/syncing
To properly sync your installed packages across different machines, you actually do not want to sync the whole
Packages/
andInstalled Packages/
folders. The reason for this is that some packages have different versions for different operating systems. By syncing the actual package contents across operating systems, you will possibly run into broken packages.The proper solution is to install
Package Control
on all machines and then to sync only thePackages/User/
folder. This folder contains thePackage Control.sublime-settings
file, which includes a list of all installed packages. If this file is copied to another machine, the next time Sublime Text is started, Package Control will install the correct version of any missing packages.