2022-03-28 15:03:21 +02:00
|
|
|
#+title: :lang sh
|
|
|
|
#+subtitle: She sells {ba,z,fi}sh shells on the C xor
|
|
|
|
#+created: September 28, 2015
|
|
|
|
#+since: 0.7
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
* Description :unfold:
|
|
|
|
This module adds support for shell scripting languages (including Powershell and
|
|
|
|
Fish script) to Doom Emacs.
|
|
|
|
|
2022-09-26 02:19:42 +08:00
|
|
|
- Code completion ([[doom-package:company-shell]])
|
|
|
|
- Syntax Checking ([[doom-package:flycheck]])
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
** Maintainers
|
|
|
|
- [[doom-user:][@hlissner]]
|
|
|
|
|
|
|
|
[[doom-contrib-maintainer:][Become a maintainer?]]
|
|
|
|
|
|
|
|
** Module flags
|
|
|
|
- +fish ::
|
|
|
|
Add syntax highlighting for fish script files.
|
|
|
|
- +lsp ::
|
2022-09-26 02:19:42 +08:00
|
|
|
Enable LSP support for ~sh-mode~. Requires [[doom-module::tools lsp]] and a langserver
|
2021-10-16 01:28:32 +02:00
|
|
|
(supports bash-language-server).
|
|
|
|
- +powershell ::
|
|
|
|
Add syntax highlighting for Powershell script files (=.ps1= and =.psm1=).
|
2022-04-09 18:38:04 +03:00
|
|
|
- +tree-sitter ::
|
|
|
|
Leverages tree-sitter for better syntax highlighting and structural text
|
2022-09-26 02:19:42 +08:00
|
|
|
editing. Requires [[doom-module::tools tree-sitter]].
|
2020-01-23 21:44:30 -05:00
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
** Packages
|
2022-09-26 02:19:42 +08:00
|
|
|
- [[doom-package:company-shell]] if [[doom-module::completion company]]
|
|
|
|
- [[doom-package:fish-mode]] if [[doom-module:+fish]]
|
|
|
|
- [[doom-package:powershell-mode]] if [[doom-module:+powershell]]
|
2017-08-21 20:12:25 +02:00
|
|
|
|
2020-01-23 21:44:30 -05:00
|
|
|
** Hacks
|
2021-10-16 01:28:32 +02:00
|
|
|
- Interpolated variables are fontified.
|
|
|
|
|
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
|
|
|
|
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
2019-04-23 19:28:41 +02:00
|
|
|
|
2020-01-23 21:44:30 -05:00
|
|
|
This module has several optional dependencies:
|
|
|
|
|
2021-10-16 01:28:32 +02:00
|
|
|
- [[https://github.com/koalaman/shellcheck][shellcheck]]: Enables advanced shell script linting.
|
2022-09-26 02:19:42 +08:00
|
|
|
- [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]]: Enables LSP support (with [[doom-module:+lsp]] flag).
|
|
|
|
- With the [[doom-module::tools debugger]] module
|
2021-10-16 01:28:32 +02:00
|
|
|
- [[http://bashdb.sourceforge.net/][bashdb]]: Enables debugging for bash scripts
|
|
|
|
- [[https://github.com/rocky/zshdb][zshdb]]: Enables debugging for zsh scripts
|
2022-11-19 15:11:58 +00:00
|
|
|
- With the [[doom-module::editor format]] module
|
|
|
|
- [[https://github.com/patrickvane/shfmt][shfmt]]: Enables formatting for {posix,ba,mk}sh scripts
|
2021-10-16 01:28:32 +02:00
|
|
|
|
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no usage documentation yet. [[doom-contrib-module:][Write some?]]
|
|
|
|
#+end_quote
|
2020-01-23 21:44:30 -05:00
|
|
|
|
|
|
|
* TODO Configuration
|
2021-10-16 01:28:32 +02:00
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no configuration documentation yet. [[doom-contrib-module:][Write some?]]
|
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
* Troubleshooting
|
|
|
|
/There are no known problems with this module./ [[doom-report:][Report one?]]
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
|
|
|
#+end_quote
|