Skip to content

Instantly share code, notes, and snippets.

@marquesghm
Created April 11, 2018 00:17
Show Gist options
  • Save marquesghm/f32282dd8b61ddf72c4bc2d5460fadc2 to your computer and use it in GitHub Desktop.
Save marquesghm/f32282dd8b61ddf72c4bc2d5460fadc2 to your computer and use it in GitHub Desktop.
Script to open sublime 2 anywhere
wget -nc https://download.sublimetext.com/Sublime%20Text%202.0.2%20x64.tar.bz2 -P ~/Downloads/
mkdir -p ~/Downloads/sublime
tar -xjf ~/Downloads/Sublime\ Text\ 2.0.2\ x64.tar.bz2 --directory ~/Downloads/sublime --strip-components 1
cd ~/Downloads/sublime
ln -sf sublime_text subl
PATH=$PATH:$HOME/Downloads/sublime
nohup ./sublime_text &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment