I do something similar.

First, my ssh is configured to perform RSA authentication when ssh-ing from 
my Linux host to my Mac, so that I don't need to be entering a password 
every time I want  to edit a file.

Second, my Linux host's local file system -- at least, the directories 
containing files I'm interested in editing -- is remotely-mounted on my 
Mac. So, for example, my Linux home directory at /home/username/ is mounted 
on the same path, /home/username on my Mac. (Fortunately, this doesn't 
obscure my Mac home directory, at /Users/username.) My office Mac uses NFS 
to remotely mount parts of the Linux host's file system. On my wandering 
MacBook, I use ExpanDrive to remotely mount parts of the Linux host's file 
system via sftp.

(Parenthetically, I find ExpanDrive mounts to be a bit fragile, especially 
if my laptop sleeps for a longish period.)

Then, in my Linux .bashrc -- I prefer the bash shell -- I define function 
bbedit:

  bbedit()
  {
      ssh ${SSH_CLIENT%% *} "cd $PWD && bbedit $@"
  }

Then, if I ssh to my Linux host from my Mac, executing "bbedit ..." on the 
Linux host command line behaves identically to doing it from the Mac 
command line.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to