sublime插件备份
2016-08-18 本文已影响0人
inu1255
- 找到备份目录
打开package目录
command+上
两次到上两级目录
在终端输入cd
将sublime目录拖到终端
sublime目录
cd /Users/tederen/Library/Application\ Support/Sublime\ Text\ 3
- 创建git仓库进行备份
.gitignore
*
!Installed\ Packages
!Packages
!.gitignore
提交上传云端仓库就行了
- 恢复
删除Installed Packages,Packages文件夹,把远程仓库中的插件pull下来
rm -Rf Installed\ Packages
rm -Rf Packages
git init
git remote add origin https://git.oschina.net/inu1255/sublime-plugin.git
git pull origin master
- 备注:
因为我安装了eslint插件,需要安装eslint并添加配置文件才有javascript的代码提示
npm install -gd eslint-plugin-react
vim ~/.eslintrc.js
.eslintrc.js
module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends" : [],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"blockBindings": true
},
"sourceType": "module"
},
"globals": {
"$":true,
"Jquery":true,
"BMap": true,
"Bmob": true,
"wx": true
},
"plugins": [
"react"
],
"rules": {
}
}