unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eshell shortcuts for remote tramp paths?
@ 2015-05-27  6:12 joakim
  2015-05-27  7:41 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: joakim @ 2015-05-27  6:12 UTC (permalink / raw)
  To: help-gnu-emacs

This has bothered me for a while, and I cant figure it out.

Say that I open an eshell and do:

cd  /scp:joakim@192.168.201.58:/home/joakim/nextv

My commands now work remotely. nice.

However, I now want to do ~/bin/lein on the remote. Is there some
shorcut for this? otherwise I need to type:
/scp:joakim@192.168.201.58:/home/joakim/bin/lein run


Its the same when trying to refer to the remote root path, /.


-- 
Joakim Verona




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: eshell shortcuts for remote tramp paths?
  2015-05-27  6:12 eshell shortcuts for remote tramp paths? joakim
@ 2015-05-27  7:41 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2015-05-27  7:41 UTC (permalink / raw)
  To: joakim; +Cc: help-gnu-emacs

joakim@verona.se writes:

Hi Joakim,

> Say that I open an eshell and do:
>
> cd  /scp:joakim@192.168.201.58:/home/joakim/nextv
>
> My commands now work remotely. nice.
>
> However, I now want to do ~/bin/lein on the remote. Is there some
> shorcut for this? otherwise I need to type:
> /scp:joakim@192.168.201.58:/home/joakim/bin/lein run
>
> Its the same when trying to refer to the remote root path, /.

- You could use relative paths:

 ../bin/lein run

- You could add "/home/joakim/bin/" to your remote $PATH env var

- You could try one of the tricks (not tested in eshell) described in

  (info "(tramp) Frequently Asked Questions")

Best regards, Michael.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-27  7:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27  6:12 eshell shortcuts for remote tramp paths? joakim
2015-05-27  7:41 ` Michael Albinus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).