如何保存 Atom 编辑器配置和安装的软件包列表 [英] How to save Atom editor config and list of packages installed

查看:44
本文介绍了如何保存 Atom 编辑器配置和安装的软件包列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用 Atom 编辑器.到目前为止它非常棒.我打算在其他几台机器上安装它.

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.

推荐答案

使用 Git 对您的配置进行版本控制文件(~/.atom/config.cson),以及您可能拥有的任何其他配置文件(点文件).

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

然后,您可以在 GitHub 之类的地方免费托管您的 Git 存储库,只需运行 <代码>git clone https://github.com/{username}/{repo}.

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}.

然后,您可以使用 git push(上传更改)和 git pull(下载更改)使其保持最新.

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

并将该文件也添加到 Git.要恢复,请使用:

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

apm install --packages-file ~/.atom/package.list

这篇关于如何保存 Atom 编辑器配置和安装的软件包列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆