开发工具 贡献一个 Sublime 自动安装插件脚本

hz_qiuyuanxin · 2013年04月06日 · 最后由 hz_qiuyuanxin 回复于 2013年04月07日 · 6141 次阅读

没技术含量,纯苦力活!

#!/bin/sh

cd ~/.config/sublime-text-2/Packages

echo Install...
echo ==================================================

echo === Package Control ===
rm -rf "Package Control"
git clone https://github.com/JustQyx/Sublime-Text-Package-Control.git "Package Control"

echo === Block Cursor Everwhere ===
rm -rf "Block Cursor Everwhere"
git clone https://github.com/ingshtrom/BlockCursorEverywhere.git "Block Cursor Everwhere"

echo === CoffeeScript ===
rm -rf "CoffeeScript"
git clone https://github.com/Xavura/CoffeeScript-Sublime-Plugin.git "CoffeeScript"

echo === Compass ===
rm -rf "Compass"
git clone https://github.com/WhatWeDo/Sublime-Text-2-Compass-Build-System.git "Compass"

echo === Ctags ===
rm -rf "Ctags"
git clone https://github.com/SublimeText/CTags.git "Ctags"

echo === DictionaryAutoComplete ===
rm -rf "DictionaryAutoComplete"
git clone https://github.com/Zinggi/DictionaryAutoComplete.git "DictionaryAutoComplete"

echo === GBK Encoding Support ===
rm -rf "GBK Encoding Support"
git clone https://github.com/akira-cn/sublime-gbk.git "GBK Encoding Support"

echo === Git ===
rm -rf "Git"
git clone https://github.com/JustQyx/SublimePluginGit.git "Git"

echo === Git Status Files ===
rm -rf "Git Status Files"
git clone https://github.com/mkraft/git-status-files.git "Git Status Files"

echo === LESS ===
rm -rf "LESS"
git clone https://github.com/danro/LESS-sublime.git "LESS"

echo === PlaceHolders ===
rm -rf "PlaceHolders"
git clone https://github.com/mrmartineau/Placeholders.git "PlaceHolders"

echo === SCSS ===
rm -rf "SCSS Snippets"
git clone https://github.com/npostulart/SCSS-Snippets.git "SCSS Snippets"
rm -rf "SCSS Tm Bundle"
git clone https://github.com/kuroir/SCSS.tmbundle.git "SCSS Tm Bundle"

echo === ZenCoding ===
rm -rf "ZenCoding"
git clone https://github.com/sublimator/ZenCoding.git "ZenCoding"

echo === Rails File Switcher ===
rm -rf "Rails File Switcher"
git clone https://github.com/AlexanderZaytsev/SublimeText2RailsFileSwitcher.git "Rails File Switcher"

echo === Ruby On Rails snippets ===
rm -rf "Ruby On Rails snippets"
git clone https://github.com/tadast/sublime-rails-snippets.git "Ruby On Rails snippets"

echo === Rake ===
rm -rf "Rake"
git clone https://github.com/SublimeText/Rake.git "Rake"

echo === Rails Related Files ===
rm -rf "Rails Related Files"
git clone https://github.com/luqman/SublimeText2RailsRelatedFiles.git "Rails Related Files"

echo === Rails Migrations List ===
rm -rf "Rails Migrations List"
git clone https://github.com/KELiON/RailsMigrationsList.git "Rails Migrations List"

echo === Ruby 1.9 Hash Converter ===
rm -rf "Ruby 1.9 Hash Converter"
git clone https://github.com/iltempo/sublime-text-2-hash-syntax.git "Ruby 1.9 Hash Converter"

echo === Markdown Preview ===
rm -rf "Markdown Preview"
git clone https://github.com/revolunet/sublimetext-markdown-preview.git "Markdown Preview"

echo === Markdown Slideshow ===
rm -rf "Markdown Slideshow"
git clone https://github.com/ogom/sublimetext-markdown-slideshow.git "Markdown Slideshow"

echo === SublimErl ===
rm -rf "SublimErl"
git clone https://github.com/ostinelli/SublimErl.git "SublimErl"

echo === Prefixr ===
rm -rf "Prefixr"
git clone https://github.com/JustQyx/Sublime-Text-Prefixr.git "Prefixr"

echo ==================================================
echo Done!

Usage

  • Save as sublime-plugin-install.sh
  • chmod +x sublime-plugin-install.sh
  • ./sublime-plugin-install.sh

撸主应该尝试下 Package Control

一键安装 比 Package Control 还方便

楼主怎么没给出脚本的下载地址啊。。。

#3 楼 @ery @hz_qiuyuanxin 那你们至少用一下 git pull 啊,每次都全部 clone,不嫌慢么?

要想只 clone 回最新的代码可以这么弄

git clone REPO_PATH --depth=1

#2 楼 @hbin 用了啊,也是挺快的,但是有时候重装或者怎样地,就麻烦很多了

#1 楼 @ericguo 弄过几次之后你就会发现很烦了。

#5 楼 @ericguo 谢谢建议哈,待改进!

需要 登录 后方可回复, 如果你还没有账号请 注册新账号