한 Mac에서 다른 Mac으로 Atom 설치 (패키지 및 설정)를 공유 / 전송하는 방법은 무엇입니까?
설치된 모든 패키지, 설정 등을 포함하여 한 Mac에서 다른 Mac으로 Atom을 복사 할 수 있습니까?
Atom 설치간에 설정 및 패키지를 동기화하는 방법에는 여러 가지가 있습니다.
Git : 공개 또는 비공개 Git 저장소를 만들고
~/.atom
거기에 로컬 폴더 의 내용을 저장합니다 . 파일에서 다음 파일 / 디렉토리를 무시.gitignore
하십시오.storage compile-cache dev .npm .node-gyp
sync-settings 와 같은 패키지를 사용 하세요 . 그러면 구성이 GitHub Gist에 저장됩니다.
Dropbox (또는 유사) :
~/.atom
폴더를 Dropbox 폴더로 이동 한 다음 거기에서 원래 위치로 심볼릭 링크합니다. 이것은~/.atom
당신이 무시할 수있는 것들을 포함하여 모든 것을 동기화한다는 단점이 있습니다 .별표 를 사용 하여 좋아하는 패키지를 선택하세요. Atom 웹 사이트에서 계정을 만들고 좋아하는 패키지에 별표를 표시하십시오. 그런 다음
apm stars --install
모든 시스템에 별표 표시된 모든 패키지를 설치 하는 데 사용하십시오. 단점 : 이것은 설정이 아닌 패키지에서만 작동합니다.
자세한 내용은:
RCM 과 같은 dotfile 관리 시스템을 사용하는 사용자로서 저는 독립적 인 구성 파일을 선호합니다.
현재 Atom은 packages.cson
플러그인을 관리 하기위한 파일을 공식적으로 제공하지 않지만 포스트 동기화 설정 및 머신 간 패키지에서 언급했듯이 파일을 생성하는 package-sync 라는 플러그인이 packages.cson
있습니다.
따라서 package-sync 의 도움으로 이제 해당 최소 구성 파일을 동기화하여 여러 컴퓨터에서 일관된 Atom 설정 및 패키지를 가질 수 있습니다.
방법은 다음과 같습니다 (예 : 우분투 사용).
- Atom을 설치 하고 스크린 샷에 표시된대로 -> -> 를 통해 package-sync 를 설치 합니다 .EditPreferencesInstall
명령 팔레트를 열고 다음을 입력
Create Package List
하면 폴더packages.cson
아래 에 파일 이 있습니다~/.atom
.gitignore 파일을 편집하십시오.
$ gedit ~ / .atom / .gitignore
콘텐츠가 다음과 같은지 확인하십시오.
blob-store compile-cache dev storage .node-gyp .npm .apm packages/ atom-shell/
이렇게하면 Atom이 인터넷에서 다운로드 한 콘텐츠가 dotfiles 저장소에 동기화되지 않습니다.
.atom
폴더를 dotfile 리포지토리로 이동합니다 .$ mv ~ / .atom ~ / dotfiles / tag-atom / atom
폴더를 다시 연결합니다.
$ ln -s ~ / dotfiles / tag-atom / atom ~ / .atom
또는 rcm이 설치된 경우 :
$ rcup
이제 다른 컴퓨터로 이동하여 Atom 및 패키지 동기화를 설치하십시오. dotfiles 리포지토리를 업데이트 한 다음 Atom 명령 팔레트를 열고 다음을 입력합니다.
sync
이제 Atom 설정이 RCM dotilfe 관리 시스템과 동기화되고 통합됩니다.
최근에 여러 컴퓨터에서 Atom 설정과 패키지를 자동으로 동기화하는 패키지를 만들었습니다. Google 크롬의 북마크 동기화 메커니즘과 약간 비슷합니다. 이를 atom-package-sync 라고 합니다 . 아마도 귀하의 요구에 맞을 수 있습니다.
.atom 폴더에는 패키지 폴더가 포함되어 있습니다. 불행히도 OneDrive에서는 폴더를 제외 할 수 없으므로 git 옵션을 사용했습니다.
git에서 패키지를 제외하고 대신 내 패키지 ( my-packages.txt
)를 포함하는 텍스트 파일을 커밋했습니다 .
패키지를 다시 설치하려면 다음을 실행해야합니다 apm install --packages-file my-packages.txt
..
를 생성하려면 my-packages.txt
Bash 셸에서 다음과 같은 것이 필요합니다.ls packages | xargs -n 1 echo | cut -d/ -f1 > my-packages.txt
package-list.txt
파일과 간단한 셸 스크립트 를 통해 패키지를 동기화 할 수 있습니다 .
package-list.txt 파일 만들기
apm list --installed --bare > package-list.txt
다른 호스트에 누락 된 패키지 설치
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
INSTALLEd_PKGS=$(apm list --installed --bare)
for PKG in $(cut -f1 -d@ $BASEDIR/package-list.txt); do
grep -q $PKG <<< $INSTALLEd_PKGS || apm install $PKG
done
Resilio Sync Home을 사용하여 Windows, macOS 및 Linux 시스템간에 Atom 설정을 동기화 합니다. 무료이며 파일은 "클라우드"(예 : Dropbox 또는 Gists)에 저장되지 않지만 현재 설정을 동기화하려면 적어도 두 대의 컴퓨터가 온라인 상태 여야합니다.
I do not want to sync caches, installation specific settings, et al., I update the .sync/IgnoreList
file that is created in the synced directory (i.e., the ~/.atom
directory). Unfortunately, you will have to update this on each machine that you sync (ironically, the IgnoreList
file is not synced). By default, the file specifies various temporary files to be omitted from syncing, so you'll need to add the following:
## Atom-specific
/packages/node-debugger/debugger.log
\packages\node-debugger\debugger.log
/.apm
\.apm
/.node-gyp
\.node-gyp
/.npm
\.npm
/blob-store
\blob-store
/compile-cache
\compile-cache
/dev
\dev
/recovery
\recovery
/split-diff
\split-diff
/storage
\storage
Some of the omitted directories are package-specific (e.g., split-diff). Because Windows has different path delimiters than other platforms, I need to specify both(!!)
- Install Resilio Sync Home on your first machine
- Add the
.atom
directory to Resilio to be synced. - Update its
IgnoreList
file, as shown above. Save this file for the other machines you want to sync with. - Send a Resilio "Read & Write" link of that folder to the other machines you want to sync with or copy the "Read & Write" key to be used on the other machines. To do this, in Resilio's folder view, click on the .atom folder's menu (vertical dots on the right edge) and select "Copy Read & Write key". Save it for later.
Then on your other machines,
- Install Resilio Sync Home
- Create
.atom/.sync
- Copy the
IgnoreList
from your first machine to that directory - Add the
.atom
directory to be synced with the other machine. You should add the folder using "Enter key or link," then enter the key you copyed, above. - Wait until syncing is done before opening Atom. The first time will may take a few minutes.
이제 모든 컴퓨터에서 개별적으로 패키지를 설치 / 제거 할 필요가 없습니다!
참고 : 파일 및 디렉터리에 대한 변경 사항은 .sync/Archive
복구해야하는 경우 일정 기간 동안에 저장 됩니다.
'Development Tip' 카테고리의 다른 글
전체 diff 출력을 얻기 위해 nose에서 self.maxDiff를 설정하는 방법은 무엇입니까? (0) | 2020.12.03 |
---|---|
정규식-문자열로 시작 및 끝 (0) | 2020.12.03 |
모든 현재 데이터베이스 이름을 찾기위한 SQL Server 쿼리 (0) | 2020.12.03 |
레이아웃을 가로 및 세로로 스크롤하려면 어떻게해야합니까? (0) | 2020.12.03 |
Emacs에서 줄 바꿈하는 방법? (0) | 2020.12.03 |