Files
doomemacs/modules/lang/sh/README.org
Henrik Lissner 6b203d74c9 refactor(sh): remove tree-sitter support
bash-ts-mode is inferior to shell-script-mode's syntax highlighting and
no other *-ts-mode modes are available for other shells (though,
there *are* powershell and nushell ts-modes; I'll investigate those
later).
2025-08-27 17:32:56 +02:00

2.4 KiB

:lang sh

Description   unfold

This module adds support for shell scripting languages (including Powershell and Fish script) to Doom Emacs.

Module flags

+fish
Add syntax highlighting for fish script files.
+lsp
Enable LSP support for sh-mode. Requires doom-module::tools lsp and a langserver (supports bash-language-server).
+powershell
Add syntax highlighting for Powershell script files (.ps1 and .psm1).

Hacks

  • Interpolated variables are fontified.

TODO Changelog

This module does not have a changelog yet.

Installation

Enable this module in your doom! block.

This module has several optional dependencies:

  • shellcheck: Enables advanced shell script linting.
  • bash-language-server: Enables LSP support (with doom-module:+lsp flag).
  • With the doom-module::tools debugger module

    • bashdb: Enables debugging for bash scripts
    • zshdb: Enables debugging for zsh scripts
  • With the doom-module::editor format module

    • shfmt: Enables formatting for {posix,ba,mk}sh scripts

TODO Usage

󱌣 This module has no usage documentation yet. Write some?

TODO Configuration

󱌣 This module has no configuration documentation yet. Write some?

Troubleshooting

There are no known problems with this module. Report one?

Frequently asked questions

This module has no FAQs yet. Ask one?

TODO Appendix

󱌣 This module has no appendix yet. Write one?