You've successfully subscribed to Nicholas Workshop
Great! Next, complete checkout for full access to Nicholas Workshop
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Sublime Text 3 On CentOS And RHEL

Nicholas Wong
Nicholas Wong
#!/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!"
Sublime Text 3 on CentOS / RHEL
Sublime Text 3 on CentOS / RHEL. GitHub Gist: instantly share code, notes, and snippets.
Unsorted

Nicholas Wong

Fullstack software engineer with strong background in computer science and extensive experience in software engineering and architecture. Studied in NYU, worked in Yahoo, Rakuten and Manulife.