Skip to content

Instantly share code, notes, and snippets.

@Rudis1261
Last active August 29, 2015 14:17
Show Gist options
  • Save Rudis1261/a6689b652551fd71cc07 to your computer and use it in GitHub Desktop.
Save Rudis1261/a6689b652551fd71cc07 to your computer and use it in GitHub Desktop.
An adaptation of the sublime text 3 installer found here http://www.simonewebdesign.it/install-sublime-text-3-on-fedora-20/

Usage

Go to sublime text website [http://www.sublimetext.com/3] and get the latest tarball url for your Linux (32bit or 64bit) for example currently it's the http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3080_x64.tar.bz2

Download the latest script, and set the executable permissions:

wget -O ~/install-sublime-text.sh http://git.io/jvvG
chmod +x ~/install-sublime-text.sh

And run the command with the url of the latest tarbal as obtained earlier:

cd ~/
./install-sublime-text.sh http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3080_x64.tar.bz2
#!/bin/sh
# Sublime Text 3 install with Package Control
# http://simonewebdesign.it/blog/install-sublime-text-3-on-fedora-20/
curl -o ~/st3.tar.bz2 $1
if tar -xf ~/st3.tar.bz2 --directory=$HOME; then
sudo mv ~/sublime_text_3/ /opt/
sudo ln -s /opt/sublime_text_3/sublime_text /bin/sublime
fi
rm ~/st3.tar.bz2
# Package Control - The Sublime Text Package Manager: https://sublime.wbond.net
curl -o ~/Package\ Control.sublime-package https://sublime.wbond.net/Package%20Control.sublime-package
sudo mv -f ~/Package\ Control.sublime-package /opt/sublime_text_3/Packages/
# Add to applications list
cat << EOF > ~/.local/share/applications/sublime.desktop
[Desktop Entry]
Name=Sublime Text 3
Exec=sublime %F
MimeType=text/plain;
Terminal=false
Type=Application
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Categories=Utility;TextEditor;Development;
EOF
echo ""
echo "Sublime Text 3 installed successfully!"
echo "Run with: sublime"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment