org-confirm-shell-link-function
org-confirm-shell-link-function is a variable defined in `
org.el
'.
Its value is
yes-or-no-p
- This variable may be risky if used as a file-local variable.
- This variable is safe as a file local variable if its value
satisfies the predicate which is a byte-compiled expression.
Documentation:
Non-nil means ask for confirmation before executing shell links.
Shell links can be dangerous: just think about a link
[[shell:rm -rf ~/*][Google Search]]
This link would show up in your Org-mode document as "Google Search",
but really it would remove your entire home directory.
Therefore we advise against setting this variable to nil.
Just change it to `y-or-n-p' if you want to confirm with a
single keystroke rather than having to type "yes".
You can customize this variable.