diff options
| author | Michael Albinus | 2019-07-22 13:04:14 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-07-22 13:04:14 +0200 |
| commit | 7f95d2d40726b4fb4a2ba1b8c373f3498e286d34 (patch) | |
| tree | 6c11f1ac14027e5bec0c71abcec6b31f2a082e01 /doc | |
| parent | 8e0ebb9a3cb9beef2f5ff50436fef1c54a3e3c92 (diff) | |
| download | emacs-7f95d2d40726b4fb4a2ba1b8c373f3498e286d34.tar.gz emacs-7f95d2d40726b4fb4a2ba1b8c373f3498e286d34.zip | |
Support history files in remote shells (Bug#36742)
* doc/emacs/misc.texi (Shell Ring): Mention history file for
remote shells.
* lisp/shell.el (shell--start-prog): New buffer-local variable.
(shell): Set it.
(shell-mode): Handle history file for remote shells. (Bug#36742)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/misc.texi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 9339626cc45..5877c4b0de1 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -1253,13 +1253,18 @@ history list, not from the shell buffer itself. Thus, editing the shell | |||
| 1253 | buffer, or even killing large parts of it, does not affect the history | 1253 | buffer, or even killing large parts of it, does not affect the history |
| 1254 | that these commands access. | 1254 | that these commands access. |
| 1255 | 1255 | ||
| 1256 | @vindex shell-input-ring-file-name | 1256 | @vindex comint-input-ring-file-name |
| 1257 | Some shells store their command histories in files so that you can | 1257 | Some shells store their command histories in files so that you can |
| 1258 | refer to commands from previous shell sessions. Emacs reads | 1258 | refer to commands from previous shell sessions. Emacs reads |
| 1259 | the command history file for your chosen shell, to initialize its own | 1259 | the command history file for your chosen shell, to initialize its own |
| 1260 | command history. The file name is @file{~/.bash_history} for bash, | 1260 | command history. The file name is @file{~/.bash_history} for bash, |
| 1261 | @file{~/.sh_history} for ksh, and @file{~/.history} for other shells. | 1261 | @file{~/.sh_history} for ksh, and @file{~/.history} for other shells. |
| 1262 | 1262 | ||
| 1263 | @vindex tramp-histfile-override | ||
| 1264 | If you run the shell on a remote host, this setting might be | ||
| 1265 | overwritten by the variable @code{tramp-histfile-override}. It is | ||
| 1266 | recommended to set this variable to @code{nil}. | ||
| 1267 | |||
| 1263 | @node Shell History Copying | 1268 | @node Shell History Copying |
| 1264 | @subsubsection Shell History Copying | 1269 | @subsubsection Shell History Copying |
| 1265 | 1270 | ||