Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 2.32 KB

README.org

File metadata and controls

54 lines (43 loc) · 2.32 KB

Shell Scripts layer

img/fish.png

Table of Contents

Description

This simple layer adds support for shell scripting.

Supported scripting files:

Note: For Windows scripting see the layer windows-scripts

Features:

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add shell-scripts to the existing dotspacemacs-configuration-layers list in this file.

Linting

In order to enable sh scripts linting, install shellcheck.

Style checking

In order to enable sh scripts style checking, install bashate.

Key bindings

Key bindingDescription
SPC m \insert end-of-line backslashes to the lines in the region
SPC i !insert shebang in a script file
SPC m i !insert shebang in a script file
SPC m i cinsert switch case statement if supported by shell
SPC m i iinsert if statement if supported by shell
SPC m i finsert function definition if supported by shell
SPC m i oinsert for loop if supported by shell
SPC m i einsert an indexed for loop if supported by shell
SPC m i winsert while loop if supported by shell
SPC m i rinsert repeat loop if supported by shell
SPC m i sinsert select loop if supported by shell
SPC m i uinsert until loop if supported by shell
SPC m i ginsert a getopts while loop if supported by shell