Skip to content

Instantly share code, notes, and snippets.

@mashihua
Created June 15, 2012 04:26
Show Gist options
  • Save mashihua/2934664 to your computer and use it in GitHub Desktop.
Save mashihua/2934664 to your computer and use it in GitHub Desktop.
TextMate 2 的 rmate 用法
打开 Preferences -> Terminal 保证:Accept ramte connectio 选中。
mate ~/.ssh/config
添加下面:
Host *
RemoteForward 52698 127.0.0.1:52698
登录远程的一台 linux 机器。运行下面的命令:
curl http://xiaoya.me/install-rmate | sh
然后你就可以在本机用 TextMate 2 编辑远程机器上的文件了。
例子:
rmate test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment