[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 7348f6d5ff: Add a space before the export comm
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-editor 7348f6d5ff: Add a space before the export command to avoid polluting $HISTFILE |
Date: |
Sun, 8 May 2022 14:59:06 -0400 (EDT) |
branch: elpa/with-editor
commit 7348f6d5ff90318a1c948d0499d8dc6721fe851a
Author: Mario Rodas <marsam@users.noreply.github.com>
Commit: Mario Rodas <marsam@users.noreply.github.com>
Add a space before the export command to avoid polluting $HISTFILE
Adding a space character before the export command doesn't save the
command in the Shell history file. This works because most of Unix
distributions usually ship with $HISTCONTROL=ignoreboth.
---
lisp/with-editor.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index dd65d00aee..3db54042aa 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -724,10 +724,10 @@ This works in `shell-mode', `term-mode', `eshell-mode' and
(with-editor--setup)
(while (accept-process-output vterm--process 0.1))
(when-let ((v (getenv envvar)))
- (vterm-send-string (format "export %s=%S" envvar v))
+ (vterm-send-string (format " export %s=%S" envvar v))
(vterm-send-return))
(when-let ((v (getenv "EMACS_SERVER_FILE")))
- (vterm-send-string (format "export EMACS_SERVER_FILE=%S" v))
+ (vterm-send-string (format " export EMACS_SERVER_FILE=%S" v))
(vterm-send-return))
(vterm-send-string "clear")
(vterm-send-return))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/with-editor 7348f6d5ff: Add a space before the export command to avoid polluting $HISTFILE,
ELPA Syncer <=