sbsh Command¶
The sbsh command launches a supervisor attached to a terminal. It's designed for interactive use and can be set as your login shell.
Usage¶
Commands¶
sbsh (default)¶
Launches a supervisor attached to a terminal:
Behavior:
- Supervisor stays attached to terminal
- Press
Ctrl-]twice to detach - Terminal continues running after detach
sbsh terminal¶
Launches a terminal in the background with no attached supervisor:
Behavior:
- Terminal runs independently
- No supervisor attached initially
- Attach later with
sb attach <name> - Important: Always use
--nameto identify the terminal
Flags¶
Persistent Flags¶
These flags apply to all sbsh commands:
--run-path <path>: Optional run path for the supervisor--config <file>: Config file (default:$HOME/.sbsh/config.yaml)--profiles <file>: Profiles manifests file (default:$HOME/.sbsh/profiles.yaml)
Supervisor Flags¶
--id <id>: Optional ID for the supervisor--socket <file>: Optional socket file for the supervisor--log-file <file>: Optional log file for the supervisor--log-level <level>: Optional log level (debug, info, warn, error)-d, --detach: Detach supervisor immediately--disable-detach: Disable detach keystroke (Ctrl-]twice)
Terminal Flags¶
--terminal-id <id>: Optional terminal ID (random if omitted)--terminal-name <name>: Optional name for the terminal-p, --profile <name>: Profile for the terminal--terminal-command <cmd>: Command to run (default:/bin/bash)--terminal-socket <file>: Optional socket file for the terminal--capture-file <file>: Optional filename for the terminal log--terminal-logfile <file>: Optional filename for the terminal log--terminal-loglevel <level>: Optional log level for the terminal--terminal-disable-set-prompt: Disable setting the prompt
Examples¶
Start with Default Profile¶
Start with Profile¶
Start Background Terminal¶
Start with Custom Command¶
Start with Detach Flag¶
Subcommands¶
sbsh terminal¶
Launch a terminal without an attached supervisor:
sbsh version¶
Show version information:
sbsh autocomplete¶
Generate shell completion:
Environment Variables¶
SBSH_PROFILES_FILE: Path to profiles file (overrides--profiles)
See Also¶
- sb Command - Management client
- Commands Overview - Command comparison
- Getting Started - Basic usage