Upon further investigation, it appears simple to just use the piece of
shell-command.el that displays the current directory in the prompt:


(require 'shell-command)
(defadvice read-shell-command (before
                               shell-command-add-directory-to-prompt
                               (prompt &rest r)
                               activate)
  "adds the current path to the shell-command minibuffer prompt"
  (let ((footer (shell-command-make-prompt-string " [%w]%$ " 
default-directory)))
    (and (string-match ": $" prompt)
         (setq prompt (replace-match footer t t prompt)))))


However, the tab-completion functionality of that file is broken in emacs24 and
unnecessary in both emacs23 and emacs24. At the very least, its documentation
should be changed to reflect this fact.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to