rmate

Edit files from an ssh session in TextMate

  • 所有者: textmate/rmate
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

rmate

If you wish to activate TextMate from an ssh session you can do so by copying the rmate (ruby) script to the server you are logged into. The script will connect back to TextMate running on your Mac so you should setup an ssh tunnel (as your Mac is likely behind NAT):

ssh -R 52698:localhost:52698 user@example.org

This can be made permanent by adding a section to your ~/.ssh/config file

Host <host>
  RemoteForward 52698 localhost:52698

or, if using unix sockets (available with OpenSSH v6.7 and above):

ssh -R /home/user/.rmate.socket:localhost:52698 user@example.org

Install

Rubygems

You can install rmate via gem:

gem install rmate

Updating to latest version can be done using:

gem update rmate

Standalone

Installing into ~/bin can be done using these two lines:

curl -Lo ~/bin/rmate https://raw.githubusercontent.com/textmate/rmate/master/bin/rmate
chmod a+x ~/bin/rmate

If ~/bin is not already in your PATH then you may want to add something like this to your shell startup file (e.g. ~/.profile):

export PATH="$PATH:$HOME/bin"

Usage

rmate [options] file

Call rmate --help for a list of options. Default options can be set in /etc/rmate.rc or ~/.rmate.rc, e.g.:

host: auto                   # Prefer host from SSH_CONNECTION over localhost
port: 52698
unixsocket: ~/.rmate.socket  # Use this socket file if it exists

You can also set the RMATE_HOST, RMATE_PORT and RMATE_UNIXSOCKET environment variables.

For more info see this blog post about rmate.

Ports

  • Bash by Harald Lapp
  • Python by Steven Clukey
  • Perl by David Jack Wange Olrik

主要指標

概覽
名稱與所有者textmate/rmate
主編程語言Ruby
編程語言Ruby (語言數: 1)
平台
許可證
所有者活动
創建於2011-10-28 18:30:15
推送於2024-01-24 16:01:33
最后一次提交2021-06-01 21:10:10
發布數4
最新版本名稱v1.5.8 (發布於 )
第一版名稱v1.5.5 (發布於 )
用户参与
星數523
關注者數29
派生數81
提交數71
已啟用問題?
問題數42
打開的問題數5
拉請求數10
打開的拉請求數1
關閉的拉請求數13
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?