Environment Variables
Environment variables for configuring cmuxterm
Environment Variables
cmuxterm uses environment variables for configuration and integration.
Socket Control
CMUX_SOCKET_PATH
Override the default socket path.
Default: /tmp/cmuxterm.sock (release) or /tmp/cmuxterm-debug.sock (debug)
CMUX_SOCKET_ENABLE
Enable or disable the control socket.
Values: 1, 0, true, false, yes, no
CMUX_SOCKET_MODE
Override the socket access mode.
CLI Context
CMUX_TAB_ID
Default tab ID for CLI commands.
cmuxterm automatically sets this in each terminal session.
CMUX_PANEL_ID
Default panel ID for CLI commands.
cmuxterm automatically sets this for each split pane.
Terminal Environment
cmuxterm sets these variables in terminal sessions:
TERM
Terminal type for compatibility.
TERM_PROGRAM
Identifies the terminal application.
cmuxterm sets this to ghostty since it's built on Ghostty. Use the socket check to distinguish from regular Ghostty.
GHOSTTY_RESOURCES_DIR
Path to Ghostty resources.
Testing & Debug
CMUX_UI_TEST_SHOW_SETTINGS
Show the settings window on app launch (for UI testing).
CMUX_UI_TEST_TRIGGER_UPDATE_CHECK
Trigger an update check on app launch (for testing).
CMUX_COMMIT
Override the commit hash displayed in the About window.
Detection Script
Check if running inside cmuxterm:
Shell Configuration
Add to your ~/.bashrc or ~/.zshrc:
Precedence
Environment variables override app settings:
- Environment variable (if set)
- App settings (Settings window)
- Default value
For example, if CMUX_SOCKET_MODE=full is set, it overrides the app's Automation Mode setting.