Open folders by default?


#1

So I have two folders that I do most of my work out of. Is there a way to ahve atom open them up as project folders on every launch?


#2

I suppose you could add both folders to the link you’re using, if you are using one (atom [dir1] [dir2]).
Because I might be wrong, but I’m thinking you’ll have to specify them at startup, rather than when the app is already open.
Edit: Indeed I was wrong less right. See @leedohm’s suggestion below.


#3

You could add some commands to your init.coffee, which is a script that is executed once on startup. Something like:

atom.project.addPath('/foo/bar/baz')
atom.project.addPath('/foo/baz/quux')

#4

@leedohm: This work perfect. Thank you!