shell自动安装sublime-text-2

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

/**
版权链接
https://gist.github.com/henriquemoody/3288681
脚步打包下载地址
http://soft.haodar.com/shell/sublime-text-2.sh(64位的系统)
**/
下面是代码
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=/usr/local/sublime-text-2/sublime_text
Icon=/usr/local/sublime-text-2/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
    /usr/local/sublime-text-2/sublime_text --help
else
    /usr/local/sublime-text-2/sublime_text \$@ > /dev/null 2>&1 &
fi"

curl -L "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2" -o "/usr/src/Sublime Text 2.tar.bz2"
cd /usr/src
tar -xvjf "Sublime Text 2.tar.bz2"
cd "Sublime Text 2"
mkdir -pv "/usr/local/sublime-text-2"
mv -fv * "/usr/local/sublime-text-2/"
echo "${SCRIPT}" > "/usr/local/bin/subl"
chmod +x "/usr/local/bin/subl"
echo "${SHORTCUT}" > "/usr/share/applications/sublime-text-2.desktop"

echo "Finish!"

再次声明注意原作者版权
https://gist.github.com/henriquemoody/3288681