Skip to content

Instantly share code, notes, and snippets.

@elia
Created May 4, 2012 13:00
Show Gist options
  • Select an option

  • Save elia/2594678 to your computer and use it in GitHub Desktop.

Select an option

Save elia/2594678 to your computer and use it in GitHub Desktop.
Enable rmate on a remote system
#!/usr/bin/env bash
echo -n 'Copying rmate executable to /tmp/rmate...'
scp -q /Applications/TextMate.app/Contents/Frameworks/Preferences.framework/Versions/A/Resources/rmate $1:/tmp/rmate
echo "done."
echo -n 'Setting up connection to remote system...'
ssh -R 52698:localhost:52698 $1 'chmod +x /tmp/rmate; echo "done."; cat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment