sh(9)*sh - UNIX shell files
hkshell.emf - UNIX shell file hook definition
shell.eaf - UNIX shell abbreviation file
shell.etf - UNIX shell programming language template file
.sh - Bourne shell file
.ksh - Korn shell file
.csh - C-Shell file
.zsh - Z-Shell file
.login - Shell user login file
.profile - Shell user profile
.tcshrc - T-Shell start up file
#![ \t]*/.*sh
The shell file type template provides simple hilighting of the shell files. It offers as well folding and support for displaying an outline of the functions of the shell script for easy navigation using the item-list(3) command. Further is is possible to expand abbreviations either via short strings using the expand-abbrev-handle(3) command and visual inserting abbreviations using the mouse by the abbrev-list(3) macro.
Folding and Information Hiding
List Items
Abbreviations
Short Cuts
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with stars (*).
A-C-i - Restyle the current region.
f2 - (un)fold the current region
f3 - (un)fold all regions
f6 - list items
esc f6 - close list items
The file hook is implemented in the hkshell.emf file, the abbreviations are placed within the shell.eaf file, the template for the initialization of the new file is defined in the shell.etf file. To add your own abbreviations or your own template copy the files to your config folder and edit them within this folder.
Functions defined without using the function keyword can't currenly folded and as well do not appear in the item-list outline.
There is a heavy bias towards Bourne, Korn and Zsh shells. The authors are not csh shell users so have probably missed a lot of csh features.
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29