Last active
August 29, 2015 13:56
-
-
Save joseluisq/9026479 to your computer and use it in GitHub Desktop.
Sublime Text 3 Shell Installer for Fedora Linux x64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Sublime Text 3 Installer | |
# for Fedora Linux x64 (64 Bit) | |
# Miscellaneous | |
B=`tput bold` | |
N=`tput sgr0` | |
# Sublime Text 3 - Build 3083 | |
# Release Date: 26 March 2015 | |
BUILD="3083" | |
SOURCE="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${BUILD}_x64.tar.bz2" | |
SHORTCUT="[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Sublime Text 3 | |
GenericName=Text Editor | |
Comment=Sophisticated text editor for code, markup and prose | |
Exec=/opt/sublime_text_3/sublime_text %F | |
Terminal=false | |
MimeType=text/plain; | |
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png | |
Categories=TextEditor;Development; | |
StartupNotify=true | |
Actions=Window;Document; | |
[Desktop Action Window] | |
Name=New Window | |
Exec=/opt/sublime_text_3/sublime_text -n | |
OnlyShowIn=Unity; | |
[Desktop Action Document] | |
Name=New File | |
Exec=/opt/sublime_text/sublime_text --command new_file | |
OnlyShowIn=Unity;" | |
# Installation | |
echo "${B}Sublime Text 3 Installer (build ${BUILD})${N}" | |
echo "${B}-------------------------------------${N}" | |
echo "Initializing the installation..." | |
echo "Downloading package..." | |
curl -L "${SOURCE}" -o "/opt/sublime_text_3.tar.bz2" | |
echo "Extracting packages..." | |
cd /opt | |
tar -xvjf "sublime_text_3.tar.bz2" | |
echo "Installing..." | |
rm -rf "sublime_text_3.tar.bz2" | |
echo "${SHORTCUT}" > "/usr/share/applications/sublime-text-3.desktop" | |
echo "Done !" | |
echo "${B}Sublime Text 3${N} has been installed successfully !" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment