diff options
| author | Mario Rodas <marsam@users.noreply.github.com> | 2017-01-11 09:09:37 -0500 |
|---|---|---|
| committer | Mario Rodas <marsam@users.noreply.github.com> | 2017-01-11 09:09:37 -0500 |
| commit | 8ae3c7aed92842f5988671c1b3350c65c58857e0 (patch) | |
| tree | 3ff1ace4732577e81f682529bdeefa7757b65cad | |
| parent | 2248a63f6eb6e7720881b508639d9a00d2db9ea0 (diff) | |
Add a space in before export command to avoid polluting HISTFILEv2.5.10
When `with-editor-export-editor` is added to `shell-mode-hook` the export
command is needlessly added to $HISTFILE, adding a space character before the
command doesn't save the command in the history list. This works given that
usually most of Linux distributions usually ship with HISTCONTROL=ignoreboth.
| -rw-r--r-- | with-editor.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/with-editor.el b/with-editor.el index 546c119..40a8363 100644 --- a/with-editor.el +++ b/with-editor.el @@ -566,7 +566,7 @@ This works in `shell-mode', `term-mode' and `eshell-mode'." (filter (process-filter process))) (goto-char (process-mark process)) (process-send-string - process (format "export %s=%s\n" envvar + process (format " export %s=%s\n" envvar (shell-quote-argument with-editor-sleeping-editor))) (while (accept-process-output process 0.1)) (set-process-filter process filter) |
