Skip to content

Instantly share code, notes, and snippets.

@andygock
Created June 4, 2017 13:31
Show Gist options
  • Save andygock/505d7212bf16cb907dbf4d3d4bac926c to your computer and use it in GitHub Desktop.
Save andygock/505d7212bf16cb907dbf4d3d4bac926c to your computer and use it in GitHub Desktop.
Bash script: Download latest Sublime Text 3 installer
#!/bin/bash
# Download latest Sublime Text 3 installer
url=$(curl -s "https://www.sublimetext.com/3" \
| grep "dl_linux.*tarball" \
| cut -d '"' -f 6)
curl "$url" -o ${url##*/}
# Example of installation:
#
# tar -jxvf sublime_text_3_build_3126_x64.tar.bz2 -C ~
# alias subl='~/sublime_text_3/sublime_text'
# echo "alias subl='~/sublime_text_3/sublime_text'" >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment