Home Download Buy Blog Forum Support

Automatically creating default config for current user

Automatically creating default config for current user

Postby ckhoo on Fri Sep 23, 2011 2:18 am

In Ubuntu, I notice that when I start Sublime for the first time, it creates a default config in ~/.config/sublime-text-2/.

Is there a way to do this automatically without invoking the GUI?

The reason I ask is because I'm creating a puppet module to automatically deploy the application.

Chris
ckhoo
 
Posts: 15
Joined: Tue Aug 16, 2011 2:37 am

Re: Automatically creating default config for current user

Postby ckhoo on Thu Oct 06, 2011 7:37 am

In case anyone needs this for automated deployments, I figured out a little workaround for it:

Code: Select all
sublime_text --command exit
ckhoo
 
Posts: 15
Joined: Tue Aug 16, 2011 2:37 am

Re: Automatically creating default config for current user

Postby jps on Thu Oct 06, 2011 7:50 am

Neat solution :)

Can I ask why you need to do this? I would have thought that creating the files on demand shouldn't cause any problems. It's worth nothing that when new versions are installed, it'll update the files in ~/.config/sublime-text-2 in a similar manner.
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm


Return to General Discussion

Who is online

Users browsing this forum: danpyq and 13 guests

cron