@cindex default user
@defopt tramp-default-user
-@value{tramp} file name can omit the user name part since
+A @value{tramp} file name can omit the user name part since
@value{tramp} substitutes the currently logged-in user name. However
this substitution can be overridden with @code{tramp-default-user}.
For example:
@subsection Tunneling with ssh
-With ssh, you could use the @code{ProxyCommand} entry in the
+With ssh, you could use the @code{ProxyCommand} entry in
@file{~/.ssh/config}:
@example
@item @code{tramp-parse-passwd}
@findex tramp-parse-passwd
-A function which parses @file{/etc/passwd} files for user names.
+A function which parses @file{/etc/passwd} for user names.
@item @code{tramp-parse-etc-group}
@findex tramp-parse-etc-group
-A function which parses @file{/etc/group} files for group names.
+A function which parses @file{/etc/group} for group names.
@item @code{tramp-parse-netrc}
@findex tramp-parse-netrc
When @code{backup-directory-alist} is @code{nil} (the default), such
problems do not occur.
-To ``turn off'' the backup feature for @value{tramp} files and stop
+To ``turn off'' the backup feature for remote files and stop
@value{tramp} from saving to the backup directory, use this:
@lisp
@vindex auto-save-file-name-transforms
Just as for backup files, similar issues of file naming affect
-auto-saving @value{tramp} files. Auto-saved files are saved in the
-directory specified by the user option
-@code{auto-save-file-name-transforms}. By default this is set to
-the local temporary directory. But in some versions of Debian
-GNU/Linux, this points to the source directory where the Emacs was
-compiled. Reset such values to a valid directory.
+auto-saving remote files. Auto-saved files are saved in the directory
+specified by the user option @code{auto-save-file-name-transforms}.
+By default this is set to the local temporary directory. But in some
+versions of Debian GNU/Linux, this points to the source directory
+where the Emacs was compiled. Reset such values to a valid directory.
Set @code{auto-save-file-name-transforms} to @code{nil} to save
auto-saved files to the same directory as the original file.
here will not work as expected.
An alternate approach is specify @code{ForwardX11 yes} or
-@code{ForwardX11Trusted yes} in the file @file{~/.ssh/config} on the
-local host.
+@code{ForwardX11Trusted yes} in @file{~/.ssh/config} on the local
+host.
@subsection Running @code{shell} on a remote host
@end group
@end example
-And finally, bash's readline shall not use key bindings like
-@samp{C-j} to commands. Disable reading the readline initialization
-file:
+And finally, bash's readline should not use key bindings like
+@samp{C-j} to commands. Disable this in your @file{~/.inputrc}:
@example
-[ $TERM = "dumb" ] && INPUTRC=/dev/null
+@group
+$if term=dumb
+# Don't bind Control-J or it messes up @value{tramp}.
+$else
+"\C-j": next-history
+$endif
+@end group
@end example
@item
How to get notified after @value{tramp} completes file transfers?
Make Emacs beep after reading from or writing to the remote host with
-the following code in @file{~/.emacs} file.
+the following code in @file{~/.emacs}.
@lisp
@group
(defadvice tramp-handle-write-region
(after tramp-write-beep-advice activate)
- "Make tramp beep after writing a file."
+ "Make @value{tramp} beep after writing a file."
(interactive)
(beep))
@end group
@group
(defadvice tramp-handle-do-copy-or-rename-file
(after tramp-copy-beep-advice activate)
- "Make tramp beep after copying a file."
+ "Make @value{tramp} beep after copying a file."
(interactive)
(beep))
@end group
@group
(defadvice tramp-handle-insert-file-contents
(after tramp-insert-beep-advice activate)
- "Make tramp beep after inserting a file."
+ "Make @value{tramp} beep after inserting a file."
(interactive)
(beep))
@end group
@item
-Why is @file{~/.sh_history} file on the remote host growing?
+Why is @file{~/.sh_history} on the remote host growing?
@vindex tramp-histfile-override
@vindex HISTFILE@r{, environment variable}
Another approach is to disable @value{tramp}'s handling of the
@env{HISTFILE} at all by setting @code{tramp-histfile-override} to
@code{nil}. In this case, saving history could be turned off by
-putting this shell code in the @file{.bashrc} or @file{.kshrc} file:
+putting this shell code in @file{.bashrc} or @file{.kshrc}:
@example
@group
@end example
For @option{ssh}-based method, add the following line to your
-@file{~/.ssh/environment} file:
+@file{~/.ssh/environment}:
@example
HISTFILE=/dev/null