tmuxp uses standard exit codes for scripting and automation.
Code |
Meaning |
|---|---|
|
Success |
|
General error (config validation, tmux command failure) |
|
Usage error (invalid arguments, missing required options) |
Usage in ScriptsΒΆ
#!/bin/bash tmuxp load my-workspace.yaml if [ $? -ne 0 ]; then echo "Failed to load workspace" exit 1 fi
#!/bin/bash tmuxp load -d my-workspace.yaml || { echo "tmuxp failed with exit code $?" exit 1 }