Sublime Text 3 On CentOS And RHEL
#!/bin/sh
# run this to install
# sudo su install-sublime-text-3.sh
# modify this if you need another version or or architecture
URL="http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2"
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/usr/local/sublime-text-3/sublime_text
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
/usr/local/sublime-text-3/sublime_text --help
else
/usr/local/sublime-text-3/sublime_text \$@ > /dev/null 2>&1 &
fi"
# download source
sudo curl -L $URL -o "/usr/src/Sublime Text 3.tar.bz2"
cd /usr/src
sudo tar -xvjf "Sublime Text 3.tar.bz2"
cd "sublime_text_3"
sudo mkdir -pv "/usr/local/sublime-text-3"
sudo mv -fv * "/usr/local/sublime-text-3/"
# create executable
echo $SCRIPT > "/usr/local/bin/subl"
sudo chmod +x "/usr/local/bin/subl"
# create shortcut
echo $SHORTCUT > "/usr/share/applications/sublime-text-3.desktop"
echo "Finish!"