Variable: shell-command-prompt-show-cwd
shell-command-prompt-show-cwd is a customizable variable defined in
simple.el.gz.
Value
nil
Documentation
If non-nil, show current directory when prompting for a shell command.
This affects shell-command and async-shell-command.
This variable was added, or its default value changed, in Emacs 27.1.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom shell-command-prompt-show-cwd nil
"If non-nil, show current directory when prompting for a shell command.
This affects `shell-command' and `async-shell-command'."
:type 'boolean
:group 'shell
:version "27.1")