📜 ⬆️ ⬇️

Use DropBox to store settings, themes and plugins Sublime text 2

Recently I read a topic about the release of the final version of Sublime text 2. Having decided to look at its capabilities, I literally fell in love with this text editor. He instantly received the status of my main development tool.

I work on two computers and I have a question: “How to synchronize settings, plugins and editor themes on all working machines?”.

A little searching on the Internet, I came across an interesting article that offers a very simple solution - to keep all the settings, themes and plugins in DropBox, and slip the symbolic links to them to the editor. So let's get started.

  1. Close Sublime text 2, of course, if it is open.
  2. In your DropBox folder (usually "~ / Dropbox /") add the folder "Sublime Text 2".
  3. Go to the settings Sublim text 2 (usually “~ / Library / Application \ Support / Sublime \ Text \ 2 /", and for windows 7 in "c: \ Users \ username \ AppData \ Roaming \ Sublime Text 2")
  4. Copy, in the newly created folder "~ / DropBox / Sublime text 2 /" three folders:
    • "Installed Packages"
    • "Packages"
    • "Pristine Packages"

  5. Originals need to be deleted or renamed.
  6. Now you need to create symbolic links to these folders and slip them into the editor. Linking is slightly different for different operating systems:
    • OS X


      1. Go to the terminal
      2. Go to the folder with the editor (“cd ~ / Library / Application \ Support / Sublime \ Text \ 2 /")
      3. Create three links with the following commands.
      4. "Ln -s ~ / Dropbox / Sublime \ Text \ 2 / Installed \ Packages ./Installed \ Packages"
      5. "Ln -s ~ / Dropbox / Sublime \ Text \ 2 / Packages ./Packages"
      6. "Ln -s ~ / Dropbox / Sublime \ Text \ 2 / Pristine \ Packages ./Pristine \ Packages"

    • Windows


      1. Open the command line and go to the editor settings directory ("cd% APPDATA% / Sublime text 2 /")
      2. Create three links with the following commands.
      3. "Mklink / D" Installed Packages "" C: \ Users \ username \ Dropbox \ Sublime text 2 \ Installed Packages ""
      4. "Mklink / D" Packages "" C: \ Users \ Username \ Dropbox \ Sublime text 2 \ Packages ""
      5. "Mklink / D" Pristine Packages "" C: \ Users \ username \ Dropbox \ Sublime text 2 \ Pristine Packages ""

    • Linux


      1. Link building for Linux is almost identical to OS X.
      2. The only thing that may differ is the installation path of the program.


  7. We launch Sublime text 2. All settings are now taken from the folder you created in DropBox.

')
I hope that this idea will be useful for you.

Source: https://habr.com/ru/post/147078/


All Articles