[debian] Sublime Text 3 install

cd /opt

# Download url: http://www.sublimetext.com/3
wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3047_x64.tar.bz2

# Extract content
tar -xvjpf sublime_text_3_build_3047_x64.tar.bz2

# Rename directory
mv sublime_text_3 sublime_text
# Create desktop file
nano ~/.local/share/applications/sublime_text.desktop

# Copy following content:
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Terminal=false
Icon[en_US]=/opt/sublime_text/Icon/256x256/sublime-text.png
Name[en_US]=Sublime Text
Exec=/opt/sublime_text/sublime_text %U
Icon=gnome-panel-launcher
# Files associations:
nano ~/.local/share/applications/mimeapps.list
[Default Applications]
...
text/plain=sublime_text.desktop
application/x-php=sublime_text.desktop
text/x-sql=sublime_text.desktop
application/javascript=sublime_text.desktop
text/css=sublime_text.desktop
application/xml=sublime_text.desktop
application/x-shellscript=sublime_text.desktop
text/x-python=sublime_text.desktop