Last active
December 19, 2015 04:09
-
-
Save mounirmesselmeni/5895264 to your computer and use it in GitHub Desktop.
Script to install sublime text 3 on Fedora 19 (18/17)
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 | |
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!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's markable, @ccouzens. One should ask to change this gist, too. To spare some headaches.