Skip to content

Instantly share code, notes, and snippets.

@edmondchuc
Last active November 30, 2018 01:06
Show Gist options
  • Save edmondchuc/84975ca9030c176823262cf0bf5e3b4f to your computer and use it in GitHub Desktop.
Save edmondchuc/84975ca9030c176823262cf0bf5e3b4f to your computer and use it in GitHub Desktop.
Sublime3 install script for Ubuntu 16.04 and newer.
#!/usr/bin/env bash
# Reference: http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/
# Get the repository and add it to sources
sudo echo Installing Sublime3 ...
printf 'Fetching package ... '
echo Done
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt update
sudo apt install sublime-text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment