Synchronising your Sublime Text 2 preferences with Dropbox
I use Sublime Text 2 both at work and at home, and it’s hard to manually keep my settings/packages in sync.
I decided to use Dropbox to keep my packages/preferences for Sublime Text 2 in one place, and then I created a symbolic link from the Dropbox directory to the Application Support directory for Sublime Text 2:
Mac OS (and Linux)
ln -sfF "~/Dropbox/Application Settings/Sublime Text 2/Packages/" "~/Library/Application Support/Sublime Text 2/Packages"
This command will create a symbolic link of the Packages directory stored in my Dropbox in the Sublime Text 2 directory, meaning that any computer I set up in this way will use the same settings/packages.
Windows
mklink /D "C:\Users\Max\AppData\Roaming\Sublime Text 2\Packages" "C:\Users\Max\Dropbox\Application Settings\Sublime Text 2\Packages"
Related posts
- Replacing the macOS audio switcher with SwiftBar
The built-in audio output menu in macOS has always felt a bit limited. The icons aren’t very helpful, the device names can’t be customised, and if you’ve got a few different outputs, it becomes tricky to quickly tell what’s what.
- Some Notes About Android Virtual Devices
Running AVD emulator from the Windows command line/Powershell/mingw32 This assumes you’ve got Android Studio installed. First you need to have the tools path in your $PATH variable, to do this edit Path in Windows’ Environment variables to include for example: C:\Users\Max\AppData\Local\Android\Sdk\tools Then you can use emulator.exe from anywhere. The Android Studio docs fail to mention this. $ emulator -no-boot-anim -accel auto -writable-system -no-snapshot -gpu host -avd K10_API_22 Installing Google Play Services I’ve been messing around with older device profiles, and trying to run things in Chrome on Android 5.0 (API level 21). You’ll need to sideload the Google Play services system APKs (from a gapps package for your target system, e.g. for Android 5.0, but you might find that the /system partition is full. No problem, you can sideload to /sdcard and symlink: $ adb remount # Fails... $ adb push .\GmsCore.apk /system/priv-app $ adb: error: failed to copy '.\GmsCore.apk' to '/system/priv-app/GmsCore.apk': No space left on device # Works... $ adb push .\GmsCore.apk /sdcard/system/priv-app $ adb push .\GoogleLoginService.apk /sdcard/system/priv-app $ adb push .\GoogleServicesFramework.apk /sdcard/system/priv-app $ adb push .\Phonesky.apk /sdcard/system/priv-app # Symlink them $ adb shell ln -s /sdcard/system/priv-app/GmsCore.apk /system/priv-app/GmsCore.apk $ adb shell ln -s /sdcard/system/priv-app/GoogleLoginService.apk /system/priv-app/GoogleLoginService.apk $ adb shell ln -s /sdcard/system/priv-app/GoogleServicesFramework.apk /system/priv-app/GoogleServicesFramework.apk $ adb shell ln -s /sdcard/system/priv-app/Phonesky.apk /system/priv-app/Phonesky.apk $ adb shell stop $ adb shell start Messing around with /etc/hosts It’s trivial to edit the /etc/hosts on your AVD, but it only works if you have blank new line at the end of the hosts file. $ adb pull /etc/hosts hosts $ nano hosts # make your changes to the hosts file locally... $ adb push hosts /etc/hosts
- VPN Connection Indication on Windows
As of tomorrow I’m going to be switching to working remotely. Same job, just from the comfort of my home office (and without 2-3 hours of commute daily!). With this change I figure I’ll have about 8-10 hours of extra time per week to work on things.
Discussion
- 2012
- TM
You forgot to thank me.
- MM
I’m getting a “syntax is incorrect” error on Windows. Any idea what I’m doing wrong? mklink /D “C:\Users\USER\AppData\Roaming\Sublime Text 2\Packages” “C:\Users\USER\Dropbox\Apps\Sublime Text 2\Packages”Also, should the folders I’m trying to link already exist before running the command?
- O
Great One, thanks
- BM
First, you have to replace the quotes - the quotes you copy from here are fancy curly quotes, and will kill the command. Second, The syntax of his command is incorrect: it should have the arguments the other way around. Third, you should create all but the final folder in the link path in your Dropbox folder. Hope this helps!
- G
One issue to beaware of is related to keystroke bindings. Windows and Mac keystroke bindings are different, so it’s probably best that you do this only if allyou computers run the same OS. Yes I found this out the hard way. Maybe there is a way around this, but I don’t know what the solution is.
- G
One issue to be aware of is related to keystroke bindings. Windows and Mac keystroke bindings are different, so I suggest you do this only if all your computers run the same OS. Yes, I found this out the hard way! There may be a way around this issue but I don’t know the solution.
Join the conversation
Reply from your own site with a Webmention (how?).
