mirror of
https://github.com/stumpwm/stumpwm.git
synced 2026-09-10 07:26:20 -04:00
Use a separate variable for shell history than command history.
Fixes #24
This commit is contained in:
parent
b104921bcc
commit
5ffb95dc16
|
|
@ -482,9 +482,12 @@ then describes the symbol."
|
|||
|
||||
(define-stumpwm-type :shell (input prompt)
|
||||
(declare (ignore prompt))
|
||||
(let ((prompt (format nil "~A -c " *shell-program*)))
|
||||
(or (argument-pop-rest input)
|
||||
(completing-read (current-screen) prompt 'complete-program))))
|
||||
(let ((prompt (format nil "~A -c " *shell-program*))
|
||||
(*input-history* *input-shell-history*))
|
||||
(unwind-protect
|
||||
(or (argument-pop-rest input)
|
||||
(completing-read (current-screen) prompt 'complete-program))
|
||||
(setf *input-shell-history* *input-history*))))
|
||||
|
||||
(define-stumpwm-type :rest (input prompt)
|
||||
(or (argument-pop-rest input)
|
||||
|
|
|
|||
|
|
@ -157,6 +157,9 @@ and complete the input by mutating it."))
|
|||
(defvar *input-history* nil
|
||||
"History for the input line.")
|
||||
|
||||
(defvar *input-shell-history* nil
|
||||
"History for shell lines.")
|
||||
|
||||
(defvar *input-last-command* nil
|
||||
"The last input command.")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue