From 09376b5124abe9ab57480915e3edfc509f30b355 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 1 Jul 2021 00:02:37 +0100 Subject: completion in eshell: go on when bash bails on it --- init.org | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index a6cfba4..745cd96 100644 --- a/init.org +++ b/init.org @@ -1769,10 +1769,12 @@ ***** Completion #+begin_src emacs-lisp (defun jao-eshell-completion-capf () - (bash-completion-dynamic-complete-nocomint - (save-excursion (eshell-bol) (point)) - (point) - t)) + (let ((c (bash-completion-dynamic-complete-nocomint + (save-excursion (eshell-bol) (point)) + (point) + t))) + (when (and c (listp c)) + (append c '(:exclusive no))))) (defun jao-eshell--add-bash-completion () (setq completion-at-point-functions -- cgit v1.2.3