Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What & how to version control for text editor (Sublime Text) settings on Github, so that settings are readily available for coding on any machine?

I almost lost all my Sublime settings last night. I know some people store their text editor settings for VIM and/or Sublime on Github. This I assume allows for a quick clone on any machine - making any machine readily available with all your settings, key bindings, packages etc.

  1. How do you store your text editor (Sublime Text 2) settings on Github, so that you can reuse your settings on any machine?
  2. What files/folders need to be put on Git?
  3. What will be the procedure of "packaging" up all these settings on a new machine?
like image 352
sojourner Avatar asked May 09 '13 14:05

sojourner


1 Answers

The easiest way would be to set the Packages/ directory as the base for your repository, as all settings (except the license), Package Control plugins, themes, etc. are in its subfolders. I have my license in my gmail so I can look it up from wherever.

As a warning, just make sure you don't have any sensitive information in any of your settings, like server passwords and the like, as unless you've paid for a private Github repository anyone at all can see your settings.

like image 144
MattDMo Avatar answered Oct 24 '22 06:10

MattDMo