mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(dired-smart-shell-command): Use
shell-command-history as in shell-command.
This commit is contained in:
parent
ca693be807
commit
93714f3c9d
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue