Created
May 4, 2012 13:00
-
-
Save elia/2594678 to your computer and use it in GitHub Desktop.
Enable rmate on a remote system
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
| #!/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