Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save Atom editor config and list of packages installed

I have recently started using Atom editor. Its pretty great so far. I am planning to install it on several other machines.

How can I replicate the config and list of packages installed on my current machine to other machines. Is there a config that I can use to export and import them on other machines.

like image 678
jsbisht Avatar asked May 02 '15 19:05

jsbisht


People also ask

How do I see what packages are installed in Atom?

Once a package is installed in Atom, it will show up in the Settings View under the "Packages" tab, along with all the preinstalled packages that come with Atom. To filter the list in order to find one, you can type into search box directly under the "Installed Packages" heading.

Where are Atom packages saved?

The default packages are stored inside an asar file (i.e. Atom. app/Contents/Resources/app.


2 Answers

Use Git to version control your config file (~/.atom/config.cson), and any other config files (dotfiles) you may have.

You can then host your Git repository for free on somewhere like GitHub, and retrieve it on other computers simply by running git clone https://github.com/{username}/{repo}.

You can then keep it up to date using git push (to upload changes) and git pull (to download changes).

To track installed packages as well, you will need to run:

apm list --installed --bare > ~/.atom/package.list 

And add that file to Git also. To restore, use:

apm install --packages-file ~/.atom/package.list 
like image 52
Zaz Avatar answered Sep 19 '22 04:09

Zaz


You can use the apm command to save/restore installed packages.

To export packages (only packages name):

apm list --installed --bare > ~/Gdrive/backup.txt 

To import packages:

apm install --packages-file ~/Gdrive/backup.txt 

On Linux apm is available if you install Atom from .deb file.

On OSX: open atom -> install shell command

Windows: apm in C:\Users\YOUR_NAME\AppData\Local\atom\bin

like image 36
vuhung3990 Avatar answered Sep 18 '22 04:09

vuhung3990