If you add:
alias subl="rmate $1"
to your remote ~/.bash_profile then typing subl foo.txt in an ssh shell will open foo.txt locally using Sublime Text. Of course if Sublime Text is also installed remotely then this will override the normal subl command but it might be worth noting this in the readme for people who only have Sublime installed locally.
If you add:
alias subl="rmate $1"
to your remote ~/.bash_profile then typingsubl foo.txt
in an ssh shell will open foo.txt locally using Sublime Text. Of course if Sublime Text is also installed remotely then this will override the normal subl command but it might be worth noting this in the readme for people who only have Sublime installed locally.