Skip to content

Instantly share code, notes, and snippets.

@mariosant
Forked from simonewebdesign/install_sublime_text.sh
Last active August 29, 2015 13:57
Show Gist options
  • Save mariosant/9815148 to your computer and use it in GitHub Desktop.
Save mariosant/9815148 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Sublime Text 3 install with Package Control
# http://simonewebdesign.it/blog/install-sublime-text-3-on-fedora-20/
# Run this script with:
# $ curl LINK_TO_THIS_SCRIPT | sh
curl -o ~/st3.tar.bz2 http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3059_x32.tar.bz2
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/subl
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 ~/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
Exec=subl %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: subl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment