Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Install Sublime Text 3 (x64) ; See http://motorscript.com/installing-sublime-text-3-linux/
#!/bin/sh
if [ ! -f sublime_text_3.tar.bz2 ]; then
curl -L "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x32.tar.bz2" -o "sublime_text_3.tar.bz2"
fi
tar -xvjf sublime_text_3.tar.bz2
sudo cp -fr "sublime_text_3/sublime_text.desktop" "/usr/share/applications/sublime_text.desktop"
sudo sed -i 's/Icon=sublime-text/Icon=\/opt\/sublime_text\/Icon\/128x128\/sublime-text.png/g' /usr/share/applications/sublime_text.desktop
rm -rf /opt/sublime_text
sudo mv "sublime_text_3" "/opt/sublime_text"
ln -s /opt/sublime_text/sublime_text /usr/bin/subl
echo "Finished!"
#!/bin/sh
if [ ! -f sublime_text_3.tar.bz2 ]; then
curl -L "http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2" -o "sublime_text_3.tar.bz2"
fi
tar -xvjf sublime_text_3.tar.bz2
sudo cp -fr "sublime_text_3/sublime_text.desktop" "/usr/share/applications/sublime_text.desktop"
sudo sed -i 's/Icon=sublime-text/Icon=\/opt\/sublime_text\/Icon\/128x128\/sublime-text.png/g' /usr/share/applications/sublime_text.desktop
rm -rf /opt/sublime_text
sudo mv "sublime_text_3" "/opt/sublime_text"
ln -s /opt/sublime_text/sublime_text /usr/bin/subl
echo "Finished!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment