Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Uninstall previous version
sudo rm -f "/usr/share/applications/sublime_text.desktop"
sudo rm -rf "/opt/sublime_text"
sudo rm -f "/usr/bin/sublime_text"
# Install new version
tar -xvjf "$1"
sudo cp -fr "sublime_text_3/sublime_text.desktop" "/usr/share/applications/sublime_text.desktop"