Skip to content

Instantly share code, notes, and snippets.

@levibuzolic
Created March 13, 2014 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save levibuzolic/9531229 to your computer and use it in GitHub Desktop.
Save levibuzolic/9531229 to your computer and use it in GitHub Desktop.
rsub - Remote SSH Sublime Text

On the local machine install the rsub package in Sublime.

Then add host entries in ~/.ssh/config for each server you'll be using rsub on.

Host your_remote_server.com
  RemoteForward 52698 127.0.0.1:52698

On the server:

sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod +x /usr/local/bin/rsub

Now you can run rsub text_file.txt to edit in Sublime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment