From 6321baf35f3c106028fffeab599e508d0ab6fc6f Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Fri, 4 Dec 2020 21:59:09 -0500 Subject: Use proper Bash completions for shell-mode. --- lisp/shell.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lisp/shell.el b/lisp/shell.el index 1b42c19..153b65e 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -203,3 +203,13 @@ Kills the buffer when the shell program quits." #'shell-kill-buffer-on-quit)) (add-hook 'shell-mode-hook #'add-shell-sentinel) + +;; Use proper Bash completion. + +(use-package bash-completion + :hook + (shell-mode . (lambda () + (company-mode) + (setq completion-at-point-functions + (list #'bash-completion-dynamic-complete)) + (bind-key "TAB" #'company-complete shell-mode-map)))) -- cgit v1.3