Created
June 4, 2017 13:31
-
-
Save andygock/505d7212bf16cb907dbf4d3d4bac926c to your computer and use it in GitHub Desktop.
Bash script: Download latest Sublime Text 3 installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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