Skip to main content

Module shellintegration

Module shellintegration 

Source
Expand description

Shell integration script deployment and shell startup configuration.

Embeds shell integration scripts (bash, zsh, pwsh, fish) and deploys them to ~/.agentmux/shell/<type>/ on first use or when the version changes. The shell controller uses these scripts to install prompt hooks that send OSC 16162;E commands carrying AGENTMUX_AGENT_ID, enabling per-pane title and color to work.

Structs§

ShellStartup
Shell startup configuration: extra args and env vars to inject.

Enums§

ShellType

Functions§

deploy_scripts
detect_shell_type
Detect shell type from the shell binary path.
documented_shell_root
The stable, user-facing script root: ~/.agentmux/shell.
get_shell_startup
Get the startup configuration for launching an interactive shell with AgentMux integration. Returns None for unknown shell types.
integration_base
integration_base_for bound to this process’s real data dir and home.
integration_base_for
Deploy shell integration scripts into <shell_root>/<type>/. Skips deployment if the version marker is already current. Errors are logged but not fatal — a missing script just means no integration. Root under which this instance’s shell-integration scripts are deployed.