Created
October 17, 2013 13:01
-
-
Save pcbulai/7024487 to your computer and use it in GitHub Desktop.
Sublime Text 3 installer on Fedora 19
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
## Install Sublime Text 3 on Fedora 19 ## | |
# Download Sublime Text 3 from http://www.sublimetext.com/3 . Make sure you download it as a tar.bz and that it has the right architecture | |
# Place this script in the same folder as your archive for ease of use, and cd there | |
# run this file with sudo chmod +x sublime-text.sh | |
#!/bin/sh | |
SCRIPT="#!/bin/sh | |
if [ \${1} == \"--help\" ]; then | |
/opt/sublime_text/sublime_text --help | |
else | |
/opt/sublime_text/sublime_text | |
fi | |
" | |
tar -xvjf "$1" | |
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 | |
sudo mv "sublime_text_3" "/opt/sublime_text" | |
sudo echo "${SCRIPT}" > "/usr/bin/sublime_text" | |
sudo chmod +x "/usr/bin/sublime_text" | |
echo "Finish!" | |
# after this enter sudo ./sublime-text.sh sublimeText3_archive_name | |
# More awesome Sublime Text shits: http://mounirmesselmeni.github.io/2013/06/30/installing-sublime-text-3-on-fedora-19/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment