#!/bin/bash
#install Sublime
echo "Install sublime 2"
sudo apt-get install Axel
Axel Http://c758482.r82.cf2.rackcdn.com/sublime\ text\ 2.0.2\ x64.tar.bz2
Tar jxvf sublime\ text\ 2.0.2\ x64.tar.bz2
sudo rm sublime\ text\ 2.0.2\ x64.tar.bz2
sudo mv sublime\ text\ 2/usr/lib/sublimetext2
sudo ln-s/usr/lib/sublimetext2/sublime_text/usr/bin/sublime
sudo echo "[Desktop Entry]
version=1.0
Name=sublime Text 2
Genericname=text Editor
Exec=sublime
Terminal=false
Icon=/usr/lib/sublimetext2/icon/48x48/sublime_text.png
Type=application
Categories=testeditor:ide:development
X-ayatana-desktop-shortcuts=newwindow
[NewWindow Shortcut Group]
Name=new Window
Exec=sublime-n
Targetenviroment=unity "> Sublime.desktop
sudo mv Sublime.desktop/usr/share/applications/sublime.desktop
The following is a self-unloading foot book
#!/bin/bash
#install Sublime
echo "Remove Sublime 2"
sudo apt-get remove Axel--purge-y
sudo rm-r/usr/lib/sublimetext2
sudo rm/usr/bin/sublime
sudo rm/usr/share/applications/sublime.desktop
Ubuntu installation Sublime Text 2 self-moving foot