How to disable this pop-up warning for orgmode commands such as:
shell:ls *.org
For which I would wish just to click once? Thanks!
(setq org-confirm-shell-link-function nil)
But:
Shell links can be dangerous: just think about a link
[[shell:rm -rf ~/*][Google Search]]
This link would show up in your Org 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".
Cf. C-h f org-confirm-shell-link-function
See also org-link-shell-skip-confirm-regexp
. You can allow specific commands through it. But beware of the possibility of a command like ls *.org && rm -rf ~/*
: ^ls.*
is obviously not enough.