[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 3a703545798 08/10: Add documentation about remote access in Esh
|
From: |
Jim Porter |
|
Subject: |
emacs-29 3a703545798 08/10: Add documentation about remote access in Eshell |
|
Date: |
Thu, 13 Jul 2023 22:25:21 -0400 (EDT) |
branch: emacs-29
commit 3a70354579819f883032fbf862d95f9f17649719
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>
Add documentation about remote access in Eshell
Do not merge to master. This is a backport of 438921161ac.
* doc/misc/eshell.texi
(Invocation): Mention the '*' prefix.
(Remote Access): New section...
(Commands): ... link to it.
---
doc/misc/eshell.texi | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi
index 3d859124b50..e05c1fc5baa 100644
--- a/doc/misc/eshell.texi
+++ b/doc/misc/eshell.texi
@@ -207,6 +207,7 @@ that will be invoked, type this as the Eshell prompt:
* Built-ins::
* Variables::
* Aliases::
+* Remote Access::
* History::
* Completion::
* Control Flow::
@@ -266,7 +267,10 @@ As an ordinary Lisp function
@vindex eshell-prefer-lisp-functions
If you would prefer to use ordinary Lisp functions over external
programs, set the option @code{eshell-prefer-lisp-functions} to
-@code{t}. This will swap the lookup order of the last two items.
+@code{t}. This will swap the lookup order of the last two items. You
+can also force Eshell to look for a command as an external program by
+prefixing its name with @kbd{*}, like @code{*@var{command}}
+(@pxref{Built-ins}).
You can also group command forms together into a subcommand with curly
braces (@code{@{@}}). This lets you use the output of a subcommand as
@@ -1048,6 +1052,33 @@ pass all arguments along. More selective use of
arguments via
@kbd{alias mcd 'mkdir $1 && cd $1'} would cause @kbd{mcd foo} to
create and switch to a directory called @samp{foo}.
+@end table
+
+@node Remote Access
+@section Remote Access
+@cmindex remote access
+
+Since Eshell uses Emacs facilities for most of its functionality, you
+can access remote hosts transparently. To connect to a remote host,
+simply @code{cd} into it:
+
+@example
+~ $ cd /ssh:user@@remote:
+/ssh:user@@remote:~ $
+@end example
+
+Additionally, built-in Eshell commands (@pxref{Built-ins}) and
+ordinary Lisp functions accept remote file names, so you can access
+them even without explicitly connecting first. For example, to print
+the contents of a remote file, you could type @samp{cat
+/ssh:user@@remote:~/output.log}. However, this means that when using
+built-in commands or Lisp functions from a remote directory, you must
+be careful about specifying absolute file names: @samp{cat
+/var/output.log} will always print the contents of your @emph{local}
+@file{/var/output.log}, even from a remote directory. If you find
+this behavior annoying, you can enable the optional electric forward
+slash module (@pxref{Electric forward slash}).
+
@node History
@section History
@cmindex history
- emacs-29 updated (7ac947f34c7 -> 6a360b08405), Jim Porter, 2023/07/13
- emacs-29 4e204b56186 01/10: ; * doc/misc/eshell.texi (Bugs and ideas): Remove implemented feature., Jim Porter, 2023/07/13
- emacs-29 6c3fe42bde1 02/10: Restructure Eshell extension modules documentation, Jim Porter, 2023/07/13
- emacs-29 6a360b08405 10/10: ; * doc/misc/eshell.texi (Variables): Add missing index for $INSIDE_EMACS, Jim Porter, 2023/07/13
- emacs-29 7640835ae03 07/10: ; * doc/misc/eshell.texi: Fix last change., Jim Porter, 2023/07/13
- emacs-29 3a703545798 08/10: Add documentation about remote access in Eshell,
Jim Porter <=
- emacs-29 951671b0e10 04/10: Document optional Eshell modules, Jim Porter, 2023/07/13
- emacs-29 e79306fb467 06/10: ; * doc/misc/eshell.texi: Fix typos and clean up unclear wording., Jim Porter, 2023/07/13
- emacs-29 f529bf52eb5 09/10: ; * doc/misc/eshell.texi (Invocation): Whitespace cleanup., Jim Porter, 2023/07/13
- emacs-29 9f6d79dd967 05/10: Document some missing Eshell commands, Jim Porter, 2023/07/13
- emacs-29 7c417b2ae55 03/10: Correct the Eshell documentation about how to write new modules, Jim Porter, 2023/07/13