aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2019-09-18 14:11:55 +0200
committerMichael Albinus2019-09-18 14:11:55 +0200
commit5ec42d5cb5219a73b5f4e9e17624bd01a138aea4 (patch)
treeefb4c736944c141d32912020029239aaa58276dd /doc/misc
parent735940f4551a43f3b4381105dc074cd7d494f2f3 (diff)
downloademacs-5ec42d5cb5219a73b5f4e9e17624bd01a138aea4.tar.gz
emacs-5ec42d5cb5219a73b5f4e9e17624bd01a138aea4.zip
Add extra args for zsh in Tramp
* doc/misc/tramp.texi (Remote shell setup): New subsection "Changing the default remote shell". * lisp/net/tramp-sh.el (tramp-sh-extra-args): Add entry for zsh.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/tramp.texi29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index e6a454be4c8..1ed334b6bde 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -1591,6 +1591,7 @@ via the @command{CONNECT} command (conforming to RFC 2616, 2817
1591specifications). Proxy servers using HTTP 1.1 or later protocol 1591specifications). Proxy servers using HTTP 1.1 or later protocol
1592support this command. 1592support this command.
1593 1593
1594
1594@subsection Tunneling with ssh 1595@subsection Tunneling with ssh
1595 1596
1596With ssh, you could use the @code{ProxyCommand} entry in 1597With ssh, you could use the @code{ProxyCommand} entry in
@@ -1609,6 +1610,7 @@ Any other program with such a feature could be used as well.
1609In the example, opening @file{@trampfn{ssh,host.your.domain,}} passes 1610In the example, opening @file{@trampfn{ssh,host.your.domain,}} passes
1610the HTTP proxy server @samp{proxy.your.domain} on port 3128. 1611the HTTP proxy server @samp{proxy.your.domain} on port 3128.
1611 1612
1613
1612@subsection Tunneling with PuTTY 1614@subsection Tunneling with PuTTY
1613 1615
1614PuTTY does not need an external program, HTTP tunnel support is 1616PuTTY does not need an external program, HTTP tunnel support is
@@ -2092,6 +2094,33 @@ be recomputed. To force @value{tramp} to recompute afresh, call
2092 2094
2093@node Remote shell setup 2095@node Remote shell setup
2094@section Remote shell setup hints 2096@section Remote shell setup hints
2097
2098
2099@subsection Changing the default remote shell
2100@cindex zsh setup
2101
2102Per default, @value{tramp} uses the command @command{/bin/sh} for
2103strting a shell on the remote host. This can be changed by setting
2104the connection property @option{remote-shell}, see @xref{Predefined
2105connection information}. Other properties might be adapted as well,
2106like @option{remote-shell-login} or @option{remote-shell-args}. If
2107you want, for example, use @command{/usr/bin/zsh} on a remote host,
2108you might apply
2109
2110@lisp
2111@group
2112(add-to-list 'tramp-connection-properties
2113 (list (regexp-quote "@trampfn{ssh,user@@host,}")
2114 "remote-shell" "/usr/bin/zsh"))
2115@end group
2116@end lisp
2117
2118This approach has also the advantage, that settings in
2119@code{tramp-sh-extra-args} will be applied. For zsh, the trouble
2120with the shell prompt due to set zle options will be avoided.
2121
2122
2123@subsection Other remote shell setup hints
2095@cindex remote shell setup 2124@cindex remote shell setup
2096@cindex @file{.profile} file 2125@cindex @file{.profile} file
2097@cindex @file{.login} file 2126@cindex @file{.login} file