Sublime 配置同步

Sublime 配置同步(dropbox)

移动配置

mkdir $HOME/Dropbox/sublime-text-3/ 
mv "$HOME/Library/Application Support/Sublime Text 3/Packages" "$HOME/Dropbox/sublime-text-3/" 
mv "$HOME/Library/Application Support/Sublime Text 3/Installed Packages" "$HOME/Dropbox/sublime-text-3/"

下载配置

DSTPATH="$HOME/Library/Application Support/Sublime Text 3" 
DROPBOX_PATH="$HOME/Dropbox/sublime-text-3" 
rm -rf "$DSTPATH/Installed Packages" 
rm -rf "$DSTPATH/Packages" 
mkdir -p "$DSTPATH" 
ln -s "$DROPBOX_PATH/Packages" "$DSTPATH/Packages" 
ln -s "$DROPBOX_PATH/Installed Packages" "$DSTPATH/Installed Packages"

p.s.可以自行换成onedrive或其他

你可能感兴趣的:(Sublime 配置同步)