Supported Commands
BashSupport Pro supports declarations by the following commands:
var=value
, i.e. regular assignmentsdeclare
local
export
getopts
mapfile
read
readonly
select
for
unset
Supported File Types
BashSupport Pro assigns the following file extensions and file names to the plugin.
Detection of script happens in this order:
- Does it contain a ShellCheck source= directive? If it does, then this is used as the file type.
- Does it contain a shebang line? If it does, then the command name is used to define the file type.
- Does it have a file extension? If it does, then
.sh
is for POSIX and.bash
is for Bash. - No directive, no shebang and no extension? In this case a warning is displayed, along with a quickfix to insert a source directive.

File Extensions
*.sh
*.bash
*.zsh
*.dash
*.ksh
*.mksh
*.bats
: this is assigned to the bats–core test runner integration.- Files without extension, but with a shebang line like
#!/bin/sh
. See below for the list of supported shebang commands.
File Names
.bashrc
.profile
.bash_profile
.bash_logout
.bash_aliases
Shebang Lines
sh
bash
zsh
dash
ash
ksh
ksh88
ksh93
mksh
@sh@
and@shell@
placeholders
Both, #!/usr/bin/env <command>
and #!/usr/bin/<command>
, are supported.