mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
(dired-smart-shell-command): Use
shell-command-history as in shell-command.
This commit is contained in:
parent
ca693be807
commit
93714f3c9d
@ -823,7 +823,9 @@ cases in variable `default-directory-alist' (which see)."
|
||||
|
||||
(defun dired-smart-shell-command (cmd &optional insert)
|
||||
"Like function `shell-command', but in the current Tree Dired directory."
|
||||
(interactive "sShell command: \nP")
|
||||
(interactive (list (read-from-minibuffer "Shell command: "
|
||||
nil nil nil 'shell-command-history)
|
||||
current-prefix-arg))
|
||||
(let ((default-directory (default-directory)))
|
||||
(shell-command cmd insert)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user