The cli is a pty that behaves completely like the normal terminal, except it records commands and their outputs. It then stores that as a buffer that's send to the backend for termfix responses
Installation from termfix, run curl -fsSL https://termfix.dev/install.sh | bash
Only works with zsh for now
- Start a pty with portable-pty
- Capture raw pty output (except with a few tweaks) in ShellContext.raw_context
- Use libghostty-rs to parse the raw context (ansi escape codes etc.)
Read full docs from termfix Config is in ~/.termfix/config.toml, logs are in ~/.termfix/logs
Read full docs from termfix
termfix start Start the pty and command recording
termfix fix --count <n> --message <User message> Send request to https://termfix.dev to help with terminal errors
termfix context Print current context that has been captured
termfix status Print current status, inactive/active