From 89f93d3d052f1dfa37e611d62e628b647fa1f7a1 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 1 Aug 2025 02:43:34 +0100 Subject: simpler bash-completion for eshell --- init.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 8b547e6..9232d94 100644 --- a/init.el +++ b/init.el @@ -1808,11 +1808,11 @@ (when (and c (listp c)) (append c '(:exclusive no))))) + (defun jao-eshell--set-up-completion () - (setq-local completion-styles '(basic partial-completion) - completion-at-point-functions - '(jao-eshell-completion-capf - pcomplete-completions-at-point t))) + (setq-local completion-styles '(basic partial-completion)) + (add-hook 'completion-at-point-functions + 'bash-completion-capf-nonexclusive nil t)) (use-package bash-completion :ensure t -- cgit v1.2.3