Preparation of Sublime Text 准备工作
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl 就可以了
Run subl --help
subl as default EDITOR
export EDITOR='subl -w'
Specifying -w will cause the subl command to not exit until the file is closed.
Install
Install rmate
on remote server where you would like to
You can install rmate
via gem
:
|
|
or just:
|
|
or, you cqn install ported version of
- Bash version by Harald Lapp
- Python version by Steven Clukey
用法 Usage:
- First open Sublime Text or TextMate on your machine.
- Then, open a tunnel to your server on your local machine
|
|
- Finally, run
rmate yourfile
on the openned ssh shell and edit your file on your local machine