[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eat 3f4d4a9c36: Skip comments in Bash history file
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eat 3f4d4a9c36: Skip comments in Bash history file |
Date: |
Fri, 22 Sep 2023 07:00:30 -0400 (EDT) |
branch: elpa/eat
commit 3f4d4a9c36526e82ee0c84ae312d95291699ac19
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Skip comments in Bash history file
* eat.el (eat--prompt-populate-input-ring): Skip Bash history
comments.
* eat.el: Add Compat as dependency; some functions from Emacs
29 are used.
---
eat.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/eat.el b/eat.el
index cbd806c816..38ad8f9dbe 100644
--- a/eat.el
+++ b/eat.el
@@ -5,7 +5,7 @@
;; Author: Akib Azmain Turja <akib@disroot.org>
;; Created: 2022-08-15
;; Version: 0.8
-;; Package-Requires: ((emacs "28.1"))
+;; Package-Requires: ((emacs "28.1") (compat "29.1"))
;; Keywords: terminals processes
;; Homepage: https://codeberg.org/akib/emacs-eat
@@ -5941,7 +5941,8 @@ character."
(pcase format
("bash"
(dolist (item (string-split hist "\n" 'omit-nulls))
- (ring-insert eat--prompt-input-ring item)))
+ (when (/= (aref item 0) ?#)
+ (ring-insert eat--prompt-input-ring item))))
("zsh"
(dolist (item (string-split hist "\n" 'omit-nulls))
(ring-insert eat--prompt-input-ring
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/eat 3f4d4a9c36: Skip comments in Bash history file,
ELPA Syncer <=