How to save Atom editor config and list of packages installed

前端 未结 6 2138
轮回少年
轮回少年 2021-01-30 00:18

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 pac

6条回答
  •  遥遥无期
    2021-01-30 00:47

    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
    

提交回复
热议问题