Implement bootstrap functionality + make bootstrap (WIP)
This commit is contained in:
parent
de08d0a2db
commit
804aba93f5
7 changed files with 131 additions and 24 deletions
|
@ -1,14 +0,0 @@
|
|||
;;; lang/sh/boostrap.el
|
||||
|
||||
(bootstrap!
|
||||
:title "{z,ba}sh"
|
||||
:desc "Sets up the zshdb and bashdb debuggers, and shell-check"
|
||||
|
||||
:if-debian
|
||||
(sudo "apt-get update && apt-get install zshdb bashdb spellcheck")
|
||||
|
||||
:if-arch
|
||||
(sudo "pacman --noconfirm --needed -S zshdb bashdb shellcheck")
|
||||
|
||||
:if-macos
|
||||
(sh "brew install zshdb bashdb"))
|
|
@ -3,3 +3,16 @@
|
|||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-shell))
|
||||
|
||||
;;
|
||||
(def-bootstrap! sh
|
||||
(when-let (progs (cl-remove-if 'executable-find '("zshdb" "bashdb" "shellcheck")))
|
||||
(let ((prog-str (string-join progs " ")))
|
||||
(pcase (doom-system-os)
|
||||
('arch
|
||||
(sudo "pacman --noconfirm -S %s" prog-str))
|
||||
('debian
|
||||
(sudo "apt-get install -y %s" prog-str))
|
||||
('macos
|
||||
(sh "brew install %s" prog-str))))
|
||||
t))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue