2020-01-23 21:44:30 -05:00
|
|
|
#+TITLE: lang/sh
|
|
|
|
#+DATE: December 19, 2015
|
|
|
|
#+SINCE: v0.7
|
|
|
|
#+STARTUP: inlineimages
|
2017-08-21 20:12:25 +02:00
|
|
|
|
2020-01-23 21:44:30 -05:00
|
|
|
* Table of Contents :TOC:
|
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#module-flags][Module Flags]]
|
|
|
|
- [[#plugins][Plugins]]
|
|
|
|
- [[#hacks][Hacks]]
|
|
|
|
- [[#prerequisites][Prerequisites]]
|
|
|
|
- [[#features][Features]]
|
|
|
|
- [[#configuration][Configuration]]
|
|
|
|
- [[#troubleshooting][Troubleshooting]]
|
|
|
|
|
|
|
|
* Description
|
2017-08-21 20:12:25 +02:00
|
|
|
This module adds support for shell scripting languages.
|
|
|
|
|
|
|
|
+ Code completion (company-shell)
|
|
|
|
+ Syntax Checking (flycheck)
|
|
|
|
|
2020-01-23 21:44:30 -05:00
|
|
|
** Module Flags
|
|
|
|
+ =+lsp= Enables LSP support for sh-mode. This requires the =:tools lsp= module
|
|
|
|
to be enabled and [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]] to be installed on your system.
|
|
|
|
+ =+fish= Add syntax highlighting for fish script files.
|
|
|
|
|
|
|
|
** Plugins
|
|
|
|
+ [[https://github.com/Alexander-Miller/company-shell][company-shell]]* (=:completion company=)
|
|
|
|
+ [[https://github.com/wwwjfy/emacs-fish][fish-mode]]* (=+fish=)
|
2017-08-21 20:12:25 +02:00
|
|
|
|
2020-01-23 21:44:30 -05:00
|
|
|
** Hacks
|
|
|
|
+ Interpolated variables are fontified.
|
2019-04-23 19:28:41 +02:00
|
|
|
|
2020-01-23 21:44:30 -05:00
|
|
|
* Prerequisites
|
|
|
|
This module has several optional dependencies:
|
|
|
|
|
|
|
|
+ [[https://github.com/koalaman/shellcheck][shellcheck]]: Enables advanced shell script linting.
|
|
|
|
+ [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]]: Enables LSP support (with =+lsp= flag).
|
|
|
|
+ With the =:tools debugger= module
|
|
|
|
+ [[http://bashdb.sourceforge.net/][bashdb]]: Enables debugging for bash scripts
|
|
|
|
+ [[https://github.com/rocky/zshdb][zshdb]]: Enables debugging for zsh scripts
|
|
|
|
|
|
|
|
* TODO Features
|
|
|
|
* TODO Configuration
|
|
|
|
* TODO Troubleshooting
|