2017-02-19 18:57:16 -05:00
|
|
|
;; -*- no-byte-compile: t; -*-
|
|
|
|
;;; lang/sh/packages.el
|
|
|
|
|
2017-02-23 00:06:12 -05:00
|
|
|
(when (featurep! :completion company)
|
|
|
|
(package! company-shell))
|
2017-03-20 02:45:31 -04:00
|
|
|
|
|
|
|
;;
|
|
|
|
(def-bootstrap! sh
|
|
|
|
(when-let (progs (cl-remove-if 'executable-find '("zshdb" "bashdb" "shellcheck")))
|
2017-03-25 01:45:23 -04:00
|
|
|
(let ((prog-str (s-join " " progs)))
|
2017-03-20 02:45:31 -04:00
|
|
|
(pcase (doom-system-os)
|
|
|
|
('arch
|
|
|
|
(sudo "pacman --noconfirm -S %s" prog-str))
|
|
|
|
('debian
|
|
|
|
(sudo "apt-get install -y %s" prog-str))
|
|
|
|
('macos
|
2017-03-25 18:41:29 -04:00
|
|
|
(sh "brew install %s" prog-str))))))
|