diff --git a/Cask b/Cask index 5513f9fa7..e4643c371 100644 --- a/Cask +++ b/Cask @@ -192,6 +192,9 @@ (depends-on "racer") (depends-on "flycheck-rust") +;; Shell -- modules/module-sh.el +(depends-on "company-shell" :git "https://github.com/Alexander-Miller/company-shell") + ;; Text modes -- modules/module-text.el (depends-on "markdown-mode") diff --git a/modules/module-sh.el b/modules/module-sh.el index d068a45df..679bc0cab 100644 --- a/modules/module-sh.el +++ b/modules/module-sh.el @@ -1,5 +1,10 @@ ;;; module-sh.el --- description +(use-package company-shell + :defer t + :config + (setq company-shell-delete-duplicates t)) + (associate! sh-mode :match "/\\.dotfiles/aliases$") (associate! sh-mode :match "/\\.?z\\(sh/.*\\|profile\\|login\\|logout\\|shrc\\|shenv\\)$") (associate! sh-mode :match "/\\.?bash\\(/.*\\|rc\\|_profile\\)$") @@ -14,6 +19,8 @@ (add-hook! sh-mode 'flycheck-mode) (add-hook! sh-mode 'electric-indent-local-mode) + (require 'company-shell) + ;; Fontify variables in strings (add-hook 'sh-mode-hook 'narf|sh-extra-font-lock-activate))