Merge pull request #1355 from chrunchyjesus/add_shellcheck

add doctor.el for shell and update readme
This commit is contained in:
Henrik Lissner 2019-05-04 19:12:02 -04:00 committed by GitHub
commit 3019b02d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 14 deletions

View file

@ -4,19 +4,16 @@ This module adds support for shell scripting languages.
+ Code completion (company-shell) + Code completion (company-shell)
+ Syntax Checking (flycheck) + Syntax Checking (flycheck)
+ Added command substitution and variable interpolation fontification + Added variable interpolation fontification
+ REPL support
* Table of Contents :TOC: * Table of Contents :TOC:
- [[Install][Install]] - [[#install][Install]]
- [[Appendix][Appendix]] - [[#dependencies][Dependencies]]
- [[Commands][Commands]]
* Install * Install
This module has no dependencies. ** Dependencies
This module has several soft dependencies:
* Appendix + ~shellcheck~ Enables shell script linting.
** Commands + ~bashdb~ Enables debugging for bash scripts.
| command | key / ex command | description | + ~zshdb~ Enables debugging for zsh scripts.
|-----------------+------------------+-------------------------------------------------------|
| ~+sh/open-repl~ | =:repl= | Open a terminal (or send the current selection to it) |

View file

@ -0,0 +1,5 @@
;;; lang/sh/doctor.el -*- lexical-binding: t; -*-
(when (featurep! :tools flycheck)
(unless (executable-find "shellcheck")
(warn! "Couldn't find shellcheck. Shell script linting will not work")))

View file

@ -1,9 +1,6 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; lang/sh/packages.el ;;; lang/sh/packages.el
;; requires shellcheck
;; optional: zshdb bashdb
(when (featurep! :completion company) (when (featurep! :completion company)
(package! company-shell)) (package! company-shell))