sh 在多台Mac上使用iCloud Drive同步您的Sublime Text 3设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在多台Mac上使用iCloud Drive同步您的Sublime Text 3设置相关的知识,希望对你有一定的参考价值。

# Notes

# Using iCloud Drive, you can sync your Sublime Text 3 
# plugins and prefs so you can always have the same setup

# Prerequisites
# Make sure both machines have the latest version of OSX 10.10.x with 
# Yosemite or higher and iCloud Drive turned on

# Quit ST3
# Pick a machine with ST3 that has the latest setup you want to start with
# Run step 1 and wait for your iCloud files to sync across the network

# Run step 2 on other machine(s) to duplicate the same settings
# Open up ST3 on the new machines and wait while ST3 updates your packages

# If you're using any system wide packages on the host machine 
# (e.g. those installed via npm i -g) be sure to replicate them on the 
# host machine(s) as well

# If your ST3 doesn't have Package Control make sure to install it
# https://packagecontrol.io/installation

# Step 1) run this on the host mac that has the latest ST3 settings & packages
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
mkdir -p ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/WebDev/ST3/Plugins
mv User ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/WebDev/ST3/Plugins
ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/WebDev/ST3/Plugins/User

# Optional backup the User folder on the agent mac before wiping it out
cp -R ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User ~/User

# Steps 2) run this on your agent machine(s) you want mirroring the mac from step 1
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
rm -rf User
ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/WebDev/ST3/Plugins/User


以上是关于sh 在多台Mac上使用iCloud Drive同步您的Sublime Text 3设置的主要内容,如果未能解决你的问题,请参考以下文章

在 iOS 上保存 iCloud Drive 安全范围 URL (UIDocumentPickerViewController)

Xcode git commit 在存储在 iCloud Drive 中的项目上失败

是否需要为 iCloud Drive 更新 iOS 7 iCloud 应用程序?

如何备份和恢复 iCloud Drive 上的 .zip 文件?

枚举 iCloud Drive 目录

在 Safari 中浏览 iCloud Drive 中的文件时,某些应用文件夹被禁用