summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/shell.el10
1 files changed, 10 insertions, 0 deletions
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))))

© 2015 - 2026 Jakob L. Kreuze