Helm: Filter out dotted commands from helm-run-external-command

master
Pierre Neidhardt 2019-06-13 23:10:20 +02:00
parent 6700ee2ea8
commit 9d7a73821f
1 changed files with 9 additions and 0 deletions

View File

@ -327,4 +327,13 @@ With prefix argument, UPDATE the databases with custom uptions thanks to the
(file-name-extension candidate)))))
1))
(defun ambrevar/helm-external-command-cleanup-dotted (&optional _ignore)
"Remove dotted programs from `helm-run-external-command' list.
Useful for Guix."
(setq helm-external-commands-list
(cl-delete-if (lambda (p) (string-prefix-p "." p))
helm-external-commands-list)))
(advice-add 'helm-external-commands-list-1
:after #'ambrevar/helm-external-command-cleanup-dotted)
(provide 'init-helm)