Sublime 配置同步

2016-05-12  本文已影响0人  篪月

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或其他

上一篇下一篇

猜你喜欢

热点阅读