Skip to main content

Module shell

Module shell 

Source
Expand description

The shell commands run under (utils/shell.ts getShellConfig on Unix): the shellPath setting when it names an existing file (else the command fails with “Custom shell path not found: ”), else /bin/bash, else bash found on PATH, else sh. Every shell runs the command as <shell> -c <command>.

Structs§

ShellConfig
The shell and the arguments before the command.

Functions§

prefixed_command
A user ! command under the shellCommandPrefix setting (session-control-provider.ts bash): the prefix, a newline, then the command; an absent or empty prefix leaves the command alone.
shell_config
getShellConfig(customShellPath); exists checks a path, which finds an executable on PATH.
shell_config_on_path
shell_config on this machine’s file system with bash looked up on path (a session’s PATH).
system_shell_config
shell_config on this machine: the file system and this process’s PATH.